Skip to content

Commit

Permalink
run local server with relative URLs (for things like codespaces)
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
jakejarvis committed Feb 4, 2021
1 parent ef445a5 commit 16caeda
Show file tree
Hide file tree
Showing 3 changed files with 562 additions and 570 deletions.
3 changes: 2 additions & 1 deletion devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"stylelint.vscode-stylelint"
],
"forwardPorts": [
1337
1337,
9337
],
"postCreateCommand": "yarn install"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"build:hugo": "hugo --gc --cleanDestinationDir --verbose",
"build:functions": "netlify-lambda build functions",
"start": "run-p start:hugo start:functions",
"start:hugo": "hugo server --disableFastRender --buildDrafts --buildFuture --port 1337 --bind 0.0.0.0 --verbose",
"start:hugo": "hugo server --disableFastRender --buildDrafts --buildFuture --port=1337 --baseURL=/ --appendPort=false --bind=0.0.0.0 --verbose",
"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:**",
Expand Down
Loading

0 comments on commit 16caeda

Please sign in to comment.