Skip to content

NextJS Setup

Chiru B edited this page Sep 5, 2022 · 2 revisions

Setup NextJS for CSR and SSG

At Foretag we only support NextJS apps that are CSR and SSG.

To disable SSR and ISR

// App.tsx
import dynamic from 'next/dynamic';

const App = ({ Component, pageProps }: AppProps) => {
    return <Component {...pageProps} />
}

export default dynamic(() => Promise.resolve(App), {
   ssr: false
});
Clone this wiki locally