Skip to content

Park9eon/nextjs-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Config

$ yarn install

Node env .env

PROD_URL=

GA_TRACKING_ID=

MONGO_URL=
MONGO_URL_TEST=
SESSION_ID=
SESSION_SECRET=

GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=

NextJS env (Public) next.config.js

require('dotenv').config();

module.exports = {
  publicRuntimeConfig: {
    NODE_ENV: process.env.NODE_ENV,
    PROD_URL: process.env.PROD_URL,
    PORT: process.env.PORT,
  },
};

Dev

$ yarn dev