I've a NextJS project and I'm using getStaticPaths()
and getStaticProps()
on It.
On SEO side, I got a feedback that; "this site is not working SSR, Its all client-side. because when we disable javascript, it returns empty page".
I couldnt understand why, but thats right, when I disable javascript, site returns empty result. (There's a json result for my getstaticprops and thats all)
Whats wrong with It? What should I make to make SSR?
edit:
Here's my _app.js
<Provider store={store}>
<PersistGate persistor={persistor}>
<NextNprogress
color="#29D"
startPosition={0.3}
stopDelayMs={200}
height={3}
showOnShallow={true}
/>
<Component {...pageProps} />
</PersistGate>
</Provider>
When I remove PersistGate, It begins to work.