-
Notifications
You must be signed in to change notification settings - Fork 4
Base URL setup
Huang Chen Syuan edited this page May 12, 2025
·
3 revisions
This guide walks you through setting up baseURL for local development and production in a project that uses Vue 3 with Vite on the frontend and Node.js on the backend.
Create a .env file at the root of your project (same level as vite.config.js) and add the following:
BASE_URL=http://localhost:3000
✅ Make sure
.envis included in.gitignore.
In Vercel, you can configure the production base URL via Environment Variables in the Vercel dashboard:
- Go to the Vercel project dashboard.
- Navigate to Settings > Environment Variables.
- Add a new variable:
- Key: BASE_URL
- Value: https://audemy.org/
- Make sure to redeploy the application after adding the variable.
- Introduction
- For Everyone
- For Developers
- For Designers
- For Management
- Introduction
- For Everyone
- For Developers
- For Designers
- For Management
- Banner
- Other Reusable Components (to be added)
- Introduction
- For Everyone
- For Developers
- For Designers
- For Management
- Resources for a New Developer
- Resources for a New Designer
- Resources for a New Project Manager