Build and deploy the app with Netlify CLI
masterTo deploy manually using the Netlify CLI, follow these steps:
- Install the CLI: Install the Netlify CLI globally via npm.
- Build the project: Run the build command while providing your
LIFF_IDas an environment variable. - Login: Ensure you are authenticated with your Netlify account.
- Deploy Draft: Run the deploy command and specify
distas the source path to create a draft site. - Deploy Production: Once the draft is verified, deploy to the production site.
# 1. Install Netlify CLI
$ npm install netlify-cli -g
# 2. Build with your LIFF ID
$ LIFF_ID="your LIFF ID" npm run build
# 3. Login to Netlify
$ netlify login
# 4. Deploy draft (use 'dist' as source path)
$ netlify deploy
# 5. Deploy to production
$ netlify deploy --prod