fix(website): serve VitePress clean URLs

This commit is contained in:
Bailey Dixon
2026-07-16 08:02:26 -04:00
parent 33538fde0c
commit b0ee6935fe
3 changed files with 16 additions and 0 deletions
+2
View File
@@ -6,6 +6,8 @@ Restored GitHub Pages only as a redirect-only compatibility endpoint for app
versions that still open `https://codename-11.github.io/hermes-relay/`. The
shim preserves known paths, query strings, and fragments while forwarding to
`https://hermes-relay.dev/docs/`; it does not publish the VitePress site.
The production Nginx configuration resolves VitePress clean URLs to their
`.html` artifacts so both legacy and corrected in-app links reach real pages.
Removal criteria and the operator review date are tracked in `TODO.md`.
## 2026-07-15 — Retire GitHub Pages and move docs to hermes-relay.dev
+1
View File
@@ -21,6 +21,7 @@ COPY preview preview
RUN cd user-docs && npm run build
FROM nginx:1.28-alpine
COPY website/nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=website-build /src/website/dist/ /usr/share/nginx/html/
COPY --from=docs-build /src/user-docs/.vitepress/dist/ /usr/share/nginx/html/docs/
EXPOSE 80
+13
View File
@@ -0,0 +1,13 @@
server {
listen 80;
listen [::]:80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location / {
# VitePress emits .html files while its public links omit the extension.
try_files $uri $uri.html $uri/ =404;
}
}