Skip to content

Commit 16caeda

Browse files
committed
run local server with relative URLs (for things like codespaces)
[skip ci]
1 parent ef445a5 commit 16caeda

File tree

3 files changed

+562
-570
lines changed

3 files changed

+562
-570
lines changed

devcontainer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"stylelint.vscode-stylelint"
1919
],
2020
"forwardPorts": [
21-
1337
21+
1337,
22+
9337
2223
],
2324
"postCreateCommand": "yarn install"
2425
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"build:hugo": "hugo --gc --cleanDestinationDir --verbose",
2020
"build:functions": "netlify-lambda build functions",
2121
"start": "run-p start:hugo start:functions",
22-
"start:hugo": "hugo server --disableFastRender --buildDrafts --buildFuture --port 1337 --bind 0.0.0.0 --verbose",
22+
"start:hugo": "hugo server --disableFastRender --buildDrafts --buildFuture --port=1337 --baseURL=/ --appendPort=false --bind=0.0.0.0 --verbose",
2323
"start:functions": "netlify-lambda serve --port 9337 functions",
2424
"start:docker": "docker run --rm -v $(pwd):/src -p 1337:1337 $(docker build --no-cache -q .)",
2525
"minify": "run-s minify:**",

0 commit comments

Comments
 (0)