Home
Basics
Introduction Environment setup Project structure Pages CSS in NextJS JavaScript in NextJS Layouts Data Fetching Routing API Routes Metadata and SEO Environment Variables OptimizationsAdvanced
Dynamic Importing Blog using md files Authentication in NextJS Mongodb and NextJS Stripe and NextJSMiscellaneous
Deploying NextJS app on Heroku NextJS Templates NextJS Interview QnAEnvironment variables in NextJS
There are 2 types of variables you can store.- Client Side -
process.env.NEXT_PUBLIC_variableName
- This is how you access the variables on client side. Note the prefix NEXT_PUBLIC_ - Server Side -
process.env.variableName
- This is how you access server side variables in NextJS
Web development and Automation testing
solutions delivered!!