I am a student who has just started learning the Internet.
I built a project using SSG (output: "export") for uploading to Cloudflare pages.
I am using Next.js version 13.
I'm using something called application routing, but when I build with SSG, when I go to another page, I see "txt" in the URL address.
This is my first HTML
Within the A tag, the address looks fine, but when you click into the page, it has the TXT appended to it.
After building the project, the txt file will be automatically generated containing this content
I have some code in my script that seems to reference this issue and I'd be grateful if you could provide suggestions on how to fix it.
I tried npm run dev
and it worked.
I searched several pages trying to find something similar to this but found no similar issues.
I just want to make sure when I do npm run start
it routes properly.
P粉1285631402023-12-31 10:18:57
Answer yourself
https://github.com/vercel/next.js/issues/48996
Downgrade next
module version to 13.2.
and start it after building.
I think this is a common bug in Next.js 13.3 version.
..I am having a hard time finding the reason why this error exists