Next.js 13.3 Append txt to URL when navigating page
P粉340980243
P粉340980243 2023-12-30 14:02:39
0
1
464

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粉340980243
P粉340980243

reply all(1)
P粉128563140

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!