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:
15
netlify.toml
15
netlify.toml
@@ -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.
|
||||
|
Reference in New Issue
Block a user