Environment Variables
Create news-client/.env before running npm run dev or npm run build.
VITE_API_BASE_URL=http://localhost:4000/api/v1VITE_UPLOAD_URL=http://localhost:4000/api/v1/sign-s3| Variable | Required | Format | Purpose |
|---|---|---|---|
VITE_API_BASE_URL | Yes | URL | Base path for all dashboard API requests |
VITE_UPLOAD_URL | Yes | URL | Endpoint that returns signed S3 upload URLs |
VITE_JWT_STORAGE_KEY | Optional | String | localStorage key name for the JWT (defaults to 'user') |
VITE_CLOUDINARY_CLOUD_NAME | Optional | String | Cloudinary cloud name for editor image uploads |
VITE_CLOUDINARY_UPLOAD_PRESET | Optional | String | Cloudinary upload preset |
VITE_S3_ENDPOINT | Optional | URL | Client-side S3-compatible endpoint |
VITE_S3_BUCKET | Optional | Bucket name | Client-side S3 bucket |
VITE_S3_REGION | Optional | Region string | Client-side S3 region |
VITE_S3_ACCESS_KEY_ID | Optional | String | Client-side S3 access key |
VITE_S3_SECRET_ACCESS_KEY | Optional | String | Client-side S3 secret |