trailingSlash export so clean URLs resolve on the static host
Build & Publish Team Docs / build (push) Failing after 3m5s

Next's default flat route.html is shadowed by the RSC sibling directory
it also emits, which 404s deep links (/docs/full-manual). trailingSlash
emits route/index.html, served in place by hanzoai/static. Rebuild 0.1.1.
This commit is contained in:
z
2026-07-21 20:01:12 -07:00
parent 7a08d3384e
commit 29607c1c41
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ spec:
- --frontend=dockerfile.v0
- --opt=context=https://git.hanzo.ai/hanzo-docs/team.git#main
- --opt=filename=Dockerfile
- --output=type=image,name=ghcr.io/hanzoai/team-docs:0.1.0,push=true
- --output=type=image,name=ghcr.io/hanzoai/team-docs:0.1.1,push=true
env:
- name: DOCKER_CONFIG
value: /root/.docker
+5
View File
@@ -5,6 +5,11 @@ const withMDX = createMDX();
/** @type {import('next').NextConfig} */
const config = {
output: 'export',
// Emit `route/index.html` (not flat `route.html`) so a generic static host
// serves every page from its own directory index — the Next-default flat
// `.html` is shadowed by the RSC sibling directory Next also emits, which
// 404s clean URLs. With trailingSlash the directory index resolves in place.
trailingSlash: true,
reactStrictMode: true,
images: {
unoptimized: true,