This guide explains how to deploy your Next.js e-commerce application to Netlify, both manually and via GitHub integration, including how to set up environment variables.
If you don't have one, sign up at https://app.netlify.com/
Netlify environment variables configuration page
Adding new environment variables
For your Next.js e-commerce app, set these variables:
NEXT_PUBLIC_API_BASE_URL= http://Give-your-backend-api-link
Example e-commerce app variables in Netlify
NEXT_PUBLIC_
For your Vite React dashboard, set these variables:
VITE_API_BASE_URL = http://Give-your-backend-api-link
Example dashboard variables in Netlify
VITE_
to the client-side code
Netlify provides free SSL certificates: