Skip to content

Commit e573c7c

Browse files
JoeMattclaude
andcommitted
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

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ jobs:
2929

3030
- name: Setup Pages
3131
uses: actions/configure-pages@v5
32-
with:
33-
static_site_generator: next
3432

3533
- name: Install dependencies
3634
run: npm ci

0 commit comments

Comments
 (0)