I'm using SSG with nextjs and run "next export" to create static files in /out folder. But when the app is deployed i get a lot of HTTP GET-request from router.js
All the files that are trying to get fetched are some kind of a json file of my pages. But why are they json? and why does this only happen in deployed? and not in dev? I haven't specified any fetches for json files. But could be related to how i use next/link
I have some code which shows how i have used the next/link
<Link
href={'/' + nav.page.slug.current}
as={isDev ? undefined : `/${nav.page.slug.current}.html`}
>
<a style={{ textDecoration: 'none' }}>
<StyledLink active={activePage === nav.page.slug.current}>
{nav.page.title}
</StyledLink>
</a>
</Link>
StyledLink is just a styled components for a span.