- Notifications
You must be signed in to change notification settings - Fork0
NotificationsYou must be signed in to change notification settings
k4l4p/LF-dine-portal
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
- Copy
.env.example
and rename to.env.[NODE_ENV]
P.S ifNODE_ENV
is not specified, default loading.env.local
NEXT_PUBLIC_API_ENDPOINT=backend endpointNEXT_PUBLIC_CONTRACT_ADDRESS=contract address
For vercel deployment, please refer tothis page to set env. variables
- Add CORS rule on thebackend
constcorsOptions={origin:[// localhost"http://localhost:3000",// ...],optionsSuccessStatus:200};app.use(cors(corsOptions));
- Install packages and run
yarn# devyarn dev# buildyarn buildyarn start