Matchu
26d7f4220a
Idk why Next made me these files in a way that created React errors but ok! Maybe it was because we didn't have `pages` in the `includes`, so my editor was using the default tsconfig instead of this one?
15 lines
590 B
TypeScript
15 lines
590 B
TypeScript
// import NextIndexWrapper from '../src'
|
|
|
|
// next/dynamic is used to prevent breaking incompatibilities
|
|
// with SSR from window.SOME_VAR usage, if this is not used
|
|
// next/dynamic can be removed to take advantage of SSR/prerendering
|
|
import dynamic from "next/dynamic";
|
|
|
|
// try changing "ssr" to true below to test for incompatibilities, if
|
|
// no errors occur the above static import can be used instead and the
|
|
// below removed
|
|
const NextIndexWrapper = dynamic(() => import("../src"), { ssr: false });
|
|
|
|
export default function Page(props: any) {
|
|
return <NextIndexWrapper {...props} />;
|
|
}
|