Commit e573c7c
fix: stop configure-pages from overriding next.config.ts
actions/configure-pages@v5 with static_site_generator: next creates a
next.config.js (CommonJS) in the repo root at build time. Because next.config.js
takes precedence over next.config.ts, the injected config (without trailingSlash)
was used instead of ours — causing all pages to output as flat /page.html files
instead of /page/index.html.
With trailingSlash: true not active, all internal nav links (/downloads/,
/features/, /about/, etc.) returned 404 on GitHub Pages.
Removing static_site_generator: next from configure-pages stops the injection.
Our next.config.ts already has output: 'export', trailingSlash: true, and
images: { unoptimized: true } — nothing from configure-pages was needed.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent f2891d4 commit e573c7c
1 file changed
+0
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | 32 | | |
35 | 33 | | |
36 | 34 | | |
| |||
0 commit comments