guess-next icon indicating copy to clipboard operation
guess-next copied to clipboard

Doesn't fetch!

Open gitgetgotgotten opened this issue 3 years ago • 1 comments

When I open the localhost:3000 in the browser, the next.js is working and I can navigate to different pages, but the problem is that it doesn't prefetch the other pages.

My cache is disabled.

In the /components/layouts.js file, I even added this line below to check if it works statically:

router.prefetch('/index.js') router.prefetch('/example.js') router.prefetch('/about.js') router.prefetch('/media.js')

No luck.

gitgetgotgotten avatar Dec 06 '21 11:12 gitgetgotgotten

@gitgetgotgotten The prefetch is a production-only feature. Next.js doesn't prefetch pages in development.

sainisagar310 avatar Aug 13 '22 05:08 sainisagar310