2021-11-01 23:03:19 -07:00
|
|
|
// This is just a copy of our higher-level catch-all page.
|
|
|
|
// That way, /outfits/new renders as normal, but /outfits/:slug
|
|
|
|
// does the SSR thing!
|
|
|
|
|
|
|
|
// 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
|
2022-09-14 19:44:38 -07:00
|
|
|
const App = dynamic(() => import("../../src/app/App"), { ssr: false });
|
2021-11-01 23:03:19 -07:00
|
|
|
|
|
|
|
export default function Page(props) {
|
2022-09-14 19:44:38 -07:00
|
|
|
return <App {...props} />;
|
2021-11-01 23:03:19 -07:00
|
|
|
}
|