Merge branch 'main' into next-routing

This commit is contained in:
Emi Matchu 2022-09-14 19:47:24 -07:00
commit 296d641c03
2 changed files with 4 additions and 4 deletions

View file

@ -15,7 +15,7 @@ import dynamic from "next/dynamic";
// try changing "ssr" to true below to test for incompatibilities, if // try changing "ssr" to true below to test for incompatibilities, if
// no errors occur the above static import can be used instead and the // no errors occur the above static import can be used instead and the
// below removed // below removed
const NextIndexWrapper = dynamic(() => import("../../src"), { ssr: false }); const App = dynamic(() => import("../../src/app/App"), { ssr: false });
export default function Page({ outfit, ...props }) { export default function Page({ outfit, ...props }) {
return ( return (
@ -24,7 +24,7 @@ export default function Page({ outfit, ...props }) {
<title>{outfit.name || "Untitled outfit"} | Dress to Impress</title> <title>{outfit.name || "Untitled outfit"} | Dress to Impress</title>
<OutfitMetaTags outfit={outfit} /> <OutfitMetaTags outfit={outfit} />
</Head> </Head>
<NextIndexWrapper {...props} /> <App {...props} />
</> </>
); );
} }

View file

@ -12,8 +12,8 @@ import dynamic from "next/dynamic";
// try changing "ssr" to true below to test for incompatibilities, if // try changing "ssr" to true below to test for incompatibilities, if
// no errors occur the above static import can be used instead and the // no errors occur the above static import can be used instead and the
// below removed // below removed
const NextIndexWrapper = dynamic(() => import("../../src"), { ssr: false }); const App = dynamic(() => import("../../src/app/App"), { ssr: false });
export default function Page(props) { export default function Page(props) {
return <NextIndexWrapper {...props} />; return <App {...props} />;
} }