This example shows the most basic idea behind Next. We have 2 pages: src/pages/index.js and src/pages/about.js. The former responds to / requests and the latter to /about. Using next/link you can add hyperlinks between them with universal routing capabilities.
The app in this repo is deployed at https://next-js.onrender.com.
Click the button below to deploy this app on Render.
-
Modify the code:
- In
render.yaml, replace the definition of the service namednext-jswith the definition that is commented out. - In
next.config.mjs, uncomment the line that setsoutput: "export".
- In
-
Commit the code changes to your repository.
-
Click the Deploy to Render button.