Created
January 18, 2023 10:08
-
-
Save natterstefan/4899c33d5849c16c6c3ca34851e6848b to your computer and use it in GitHub Desktop.
Revisions
-
natterstefan created this gist
Jan 18, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ # Next.js | Catch-All route including index This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ import React from 'react' export default () => <p>Hello World</p> export const getServerSideProps = async () => { return { props: {}, } } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ // inspired by https://github.com/vercel/next.js/issues/10488#issuecomment-930702885 import Page from './[...params]' export { getServerSideProps } from './[...params]' export default Page