Created
January 18, 2023 10:08
-
-
Save natterstefan/4899c33d5849c16c6c3ca34851e6848b to your computer and use it in GitHub Desktop.
Next.js | Catchall 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 characters
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 characters
// inspired by https://github.com/vercel/next.js/issues/10488#issuecomment-930702885 | |
import Page from './[...params]' | |
export { getServerSideProps } from './[...params]' | |
export default Page |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment