Create the file .env.local
and copy the content of .env.local.example
(change the backend URL if needed)
- For Next.js server code use:
${process.env.BACKEND}/
- For frontend code use:
/backend/
-> this will be a proxy to the backend URL
https://github.com/Eloi-Perez/ecommerce-node-backend
npm run dev
Open http://localhost:3000 with your browser to see the result.
https://github.com/Eloi-Perez/guide-collaborating
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.