This is a starter template for Learn Next.js.
Dynamic routes can be extended to catch all paths by adding three dots (...) inside the brackets. For example:
pages/posts/[...id].js matches /posts/a, but also /posts/a/b, /posts/a/b/c and so on. If you do this, in getStaticPaths, you must return an array as the value of the id key like so
Use TypeScript with Next.js If you prefer using TypeScript, you can learn how to use TypeScript with Next.js from here. https://nextjs.org/learn/excel/typescript
What to Learn Next Take a look at our documentation to learn more. In particular, the following pages might be interesting:
Data Fetching: Learn in depth about data fetching. https://nextjs.org/docs/basic-features/data-fetching Environment Variables: Learn more about the built-in support for Environment Variables. https://nextjs.org/docs/basic-features/environment-variables AMP Support: Next.js lets you easily create an AMP page. https://nextjs.org/docs/advanced-features/amp-support/introduction