trailingSlash export so clean URLs resolve on the static host
Build & Publish Team Docs / build (push) Failing after 3m5s
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:
@@ -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,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,
|
||||
|
||||
Reference in New Issue
Block a user