You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- In Vercel Project → Settings → Build & Development Settings:
107
+
- Root Directory: `frontend`
108
+
- Install Command: `npm ci`
109
+
- Build Command: `npm run build`
110
+
- Output Directory: `dist`
111
+
112
+
5) Add environment variables in Vercel (production)
113
+
114
+
- In Vercel Project → Settings → Environment Variables add `VITE_API_URL` and set it to your backend API URL (the URL produced by `sam deploy` or your chosen backend host). Mark it for `Production` and `Preview` as desired.
115
+
116
+
6) Trigger a deployment
117
+
118
+
- Push to `main` (Vercel auto-deploys) or run the GitHub Action `Deploy Frontend to Vercel` (Actions → Deploy Frontend to Vercel → Run workflow). The workflow uses the `frontend` folder and the `VERCEL_TOKEN` secret.
119
+
120
+
7) Confirm the live site
121
+
122
+
- After the deploy completes, open the Vercel project page to get the production URL (e.g., `https://your-project.vercel.app`).
123
+
124
+
Notes and security
125
+
- Do NOT commit tokens or IDs into your repository. Use GitHub Secrets as shown above. I updated `.github/workflows/deploy-vercel.yml` to read `VERCEL_TOKEN`, `VERCEL_ORG_ID`, and `VERCEL_PROJECT_ID` from secrets.
126
+
- If you prefer me to add a short section with CLI/API commands to find IDs automatically, tell me and I will add it.
0 commit comments