mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-27 08:58:30 -04:00
start netlify-lambda local server side-by-side with Hugo server
[skip ci]
This commit is contained in:
parent
bb96e937c6
commit
c111c90801
@ -166,8 +166,8 @@ disableAliases = true
|
||||
for = "/**"
|
||||
[server.headers.values]
|
||||
Access-Control-Allow-Origin = "*"
|
||||
# TODO: Proxy /api requests to netlify-lambda's local server for each function
|
||||
# TODO: Proxy /api requests to netlify-lambda's local server (port 9337) for each function
|
||||
[[server.redirects]]
|
||||
from = "/api/**"
|
||||
to = "http://localhost:9000/"
|
||||
to = "http://localhost:9337/"
|
||||
status = 200
|
||||
|
@ -18,9 +18,9 @@
|
||||
"build": "run-s build:** minify",
|
||||
"build:hugo": "hugo --gc --cleanDestinationDir --verbose",
|
||||
"build:functions": "netlify-lambda build functions",
|
||||
"start": "run-p start:hugo",
|
||||
"start": "run-p start:hugo start:functions",
|
||||
"start:hugo": "hugo server --disableFastRender --buildDrafts --buildFuture --port 1337 --bind 0.0.0.0 --verbose",
|
||||
"start:netlify": "netlify dev --live",
|
||||
"start:functions": "netlify-lambda serve --port 9337 functions",
|
||||
"start:docker": "docker run --rm -v $(pwd):/src -p 1337:1337 $(docker build --no-cache -q .)",
|
||||
"minify": "run-s minify:**",
|
||||
"minify:html": "html-minifier --html5 --collapse-whitespace --collapse-boolean-attributes --preserve-line-breaks --minify-css --remove-comments --file-ext html --input-dir public --output-dir public **/*.html",
|
||||
|
Loading…
x
Reference in New Issue
Block a user