Skip to content

k4l4p/LF-dine-portal

Repository files navigation

LFDINE NFT minting portal

  1. Copy .env.example and rename to .env.[NODE_ENV]
    P.S if NODE_ENV is not specified, default loading .env.local
NEXT_PUBLIC_API_ENDPOINT=backend endpoint
NEXT_PUBLIC_CONTRACT_ADDRESS=contract address

For vercel deployment, please refer to this page to set env. variables

  1. Add CORS rule on the backend
const corsOptions = {
  origin: [
    // localhost
    "http://localhost:3000", 
    // ...
    ],
  optionsSuccessStatus: 200
};
app.use(cors(corsOptions));
  1. Install packages and run
yarn 
# dev
yarn dev
# build
yarn build
yarn start