Skip to content

Commit

Permalink
Merge pull request #110 from dandi/netlify
Browse files Browse the repository at this point in the history
Netlify
  • Loading branch information
bendichter authored Mar 3, 2025
2 parents 4baac10 + cbdf79d commit 5b67c32
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[build]
publish = "public"
command = "git submodule update --init --recursive && ([ -f package-lock.json ] || [ -f npm-shrinkwrap.json ] && npm ci || true) && npm install postcss postcss-cli autoprefixer && hugo --gc --minify"

[build.environment]
HUGO_VERSION = "0.137.1"
TZ = "America/Los_Angeles"

[context.deploy-preview]
command = "git submodule update --init --recursive && ([ -f package-lock.json ] || [ -f npm-shrinkwrap.json ] && npm ci || true) && npm install postcss postcss-cli autoprefixer && hugo --gc --minify -b $DEPLOY_PRIME_URL"

[context.branch-deploy]
command = "git submodule update --init --recursive && ([ -f package-lock.json ] || [ -f npm-shrinkwrap.json ] && npm ci || true) && npm install postcss postcss-cli autoprefixer && hugo --gc --minify -b $DEPLOY_PRIME_URL"

0 comments on commit 5b67c32

Please sign in to comment.