Next.js local server
running our website from our machine
Last updated
running our website from our machine
Last updated
We've created the and the of our Next.js app, we can see our progress by running them on a browser via a local server!
Let's open the file package.json
and add the following to the scripts
property:
So, on our Terminal, when we run:
...a browser window will automatically open up to localhost:3000
We should see a simple page with "Home"
Every saved change we make to page.tsx
on VS Code will immediately hot reload the browser!