41 lines
1.6 KiB
Plaintext
41 lines
1.6 KiB
Plaintext
# =====================================================
|
|
# BLOG EDITOR FRONTEND - ENVIRONMENT CONFIGURATION
|
|
# =====================================================
|
|
# Copy this file to .env and update with your actual values
|
|
# DO NOT commit .env file to git (it's in .gitignore)
|
|
# =====================================================
|
|
|
|
# =====================================================
|
|
# BLOG EDITOR BACKEND API URL
|
|
# =====================================================
|
|
# URL of the blog editor backend API
|
|
# This is where posts, uploads, etc. are handled
|
|
VITE_API_URL=http://localhost:5001
|
|
|
|
# Production example:
|
|
# VITE_API_URL=https://api.yourdomain.com
|
|
|
|
# =====================================================
|
|
# AUTH SERVICE API URL
|
|
# =====================================================
|
|
# URL of your existing auth service
|
|
# This is where authentication (login, OTP, etc.) is handled
|
|
VITE_AUTH_API_URL=http://localhost:3000
|
|
|
|
# Production example:
|
|
# VITE_AUTH_API_URL=https://auth.yourdomain.com
|
|
|
|
# =====================================================
|
|
# NOTES
|
|
# =====================================================
|
|
# 1. VITE_ prefix is required for Vite to expose these variables
|
|
# Access in code: import.meta.env.VITE_API_URL
|
|
#
|
|
# 2. Make sure both services are running:
|
|
# - Auth service on port 3000 (or your configured port)
|
|
# - Blog editor backend on port 5001 (or your configured port)
|
|
# - Blog editor frontend on port 4000 (or your configured port)
|
|
#
|
|
# 3. For production builds, these values are baked into the build
|
|
# Make sure to set correct production URLs before building
|