Repository navigation
Commit 2dd3e4e
committed
Serve the site at the domain root instead of /documentdb.github.io
This repository is the organization Pages site with a custom domain, so
the deployed artifact is served at the root of documentdb.io. Building
with NEXT_BASE_PATH set to the repository name prefixes every internal
link and asset URL with /documentdb.github.io/, which GitHub Pages then
301-redirects back to the root on every request: every CSS/JS/font/image
load pays an extra round trip (defeating the font preload), and after
any client-side navigation the prefixed URL is what users see and share
in the address bar.
Drop NEXT_BASE_PATH and pin JEKYLL_BASE_PATH to /blogs so generated
URLs match where GitHub Pages actually serves the files. This also
makes the CI build-validation job (which already builds without
NEXT_BASE_PATH) exercise the same configuration that production ships.1 parent dd4e786 commit 2dd3e4e
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
80 | 87 | | |
81 | | - | |
82 | | - | |
| 88 | + | |
83 | 89 | | |
84 | 90 | | |
85 | 91 | | |
| |||
0 commit comments