0

I build my nextjs app and then run yarn start, I find there are a lot of 404 files. I want to know what are these files and how can I remove these files,

enter image description here

enter image description here

enter image description here

Filburt
  • 17,626
  • 12
  • 64
  • 115
joshua
  • 325
  • 1
  • 8

1 Answers1

0

There are two ways to solve this problem

1.<Link href='posts/0' prefetch={false}/>

2.Change <Link href='posts/0'/>to <Link href='posts/[page]' as='posts/0'/>

reference:

thanks George!

joshua
  • 325
  • 1
  • 8