Next.js Discord

Discord Forum

serving index.txt instead of index.html (static output)

Unanswered
Arboreal ant posted this in #help-forum
Open in Discord
Arboreal antOP
I build my nextjs app with output: 'export' and trailingSlash: true. No dynamic pages on the latest nextjs version 15.5.4. When uploading a new version to the CDN the following happens: I request the main page domain.com and the site loads as expected. it instantly fetches the RSC payload of linked internal pages as expected. Then I click a link e.g. https://domain.com/contact/ (the rsc response earlier was successful) but the browser serves https://domain.com/contact/index.txt. If I directly request the site https://domain.com/contact/ it loads as expected and after that the internal link to that site works which tells me it's most likly not a problem of hosting. I found some posts that had the same problem on github back with version 13.

0 Replies