1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-19 04:55:30 -04:00

Google AMP support & switch to NPM builds (#14)

This commit is contained in:
2019-11-19 15:23:16 -05:00
committed by GitHub
parent d42a00247f
commit d6ad47c57b
30 changed files with 463 additions and 136 deletions

View File

@@ -1,8 +1,19 @@
# netlify.sh downloads Hugo fork and builds the site independently.
[build]
command = "./scripts/netlify-build.sh"
command = "npm run build"
publish = "public"
[context.production.environment]
HUGO_VERSION = "0.59.1"
HUGO_ENV = "production"
[context.deploy-preview]
command = "npm run build:preview"
publish = "public"
[context.deploy-preview.environment]
HUGO_VERSION = "0.59.1"
HUGO_ENV = "development"
# The most important headers and redirects are specified in the _headers and
# _redirects files generated by Hugo. These are additional custom rules.