mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-21 06:21:17 -04:00
update netlify.toml [skip ci]
This commit is contained in:
26
netlify.toml
26
netlify.toml
@@ -1,12 +1,27 @@
|
|||||||
|
[build]
|
||||||
|
command = "yarn build"
|
||||||
|
publish = "public"
|
||||||
|
|
||||||
[build.environment]
|
[build.environment]
|
||||||
NODE_VERSION = "12.13.1"
|
NODE_VERSION = "12.13.1"
|
||||||
NPM_VERSION = "6.13.1"
|
NPM_VERSION = "6.13.1"
|
||||||
YARN_VERSION = "1.21.0"
|
YARN_VERSION = "1.21.0"
|
||||||
YARN_FLAGS = "--no-ignore-optional --frozen-lockfile"
|
YARN_FLAGS = "--no-ignore-optional --frozen-lockfile"
|
||||||
|
|
||||||
[build]
|
# Ensure *only* Pretty URLs are enabled, even though this is already set up in
|
||||||
command = "yarn build"
|
# the Netlify dashboard.
|
||||||
publish = "public"
|
[build.processing]
|
||||||
|
skip_processing = false
|
||||||
|
[build.processing.css]
|
||||||
|
bundle = false
|
||||||
|
minify = false
|
||||||
|
[build.processing.js]
|
||||||
|
bundle = false
|
||||||
|
minify = false
|
||||||
|
[build.processing.html]
|
||||||
|
pretty_urls = true
|
||||||
|
[build.processing.images]
|
||||||
|
compress = false
|
||||||
|
|
||||||
[context.deploy-preview]
|
[context.deploy-preview]
|
||||||
command = "yarn build:preview"
|
command = "yarn build:preview"
|
||||||
@@ -36,13 +51,12 @@
|
|||||||
to = "/feed.xml"
|
to = "/feed.xml"
|
||||||
status = 301
|
status = 301
|
||||||
|
|
||||||
# Mirror Y2K site from GitHub Pages:
|
# Mirror these directories from elsewhere to mimic old GitHub Pages behavior
|
||||||
|
# and keep the main repository squeaky clean:
|
||||||
[[redirects]]
|
[[redirects]]
|
||||||
from = "/y2k/*"
|
from = "/y2k/*"
|
||||||
to = "https://jakejarvis.github.io/y2k/:splat"
|
to = "https://jakejarvis.github.io/y2k/:splat"
|
||||||
status = 200
|
status = 200
|
||||||
|
|
||||||
# Legacy GitHub Pages subdirectory behavior:
|
|
||||||
[[redirects]]
|
[[redirects]]
|
||||||
from = "/ios-trackers/*"
|
from = "/ios-trackers/*"
|
||||||
to = "https://jakejarvis.github.io/ios-trackers/:splat"
|
to = "https://jakejarvis.github.io/ios-trackers/:splat"
|
||||||
|
Reference in New Issue
Block a user