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,
Asked
Active
Viewed 36 times
0
-
1https://stackoverflow.com/questions/55887316/next-js-404-error-for-all-preloaded-links – George Jul 20 '20 at 10:26
-
thanks!!!I have not heard of `prefetch` before my ask the question – joshua Jul 20 '20 at 12:19
1 Answers
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