fix: change env variable to correct name

This commit is contained in:
2025-07-24 20:20:15 +00:00
parent 861eb63b19
commit 7f91df5ae5

View File

@@ -4,7 +4,7 @@ from pathlib import Path
# === Prompt user input === #
react_api_url = input("🔧 Enter the REACT_APP_API_BASE_URL (e.g. https://minxa.wtf): ").strip()
allowed_origins = input("🔒 Enter allowed CORS origins for the backend comma-separated (e.g. https://minxa.lol,https://minxo.lol): ").strip()
allow_origins = input("🔒 Enter allowed CORS origins for the backend comma-separated (e.g. https://minxa.lol,https://minxo.lol): ").strip()
# Ask for environment and validate input
valid_envs = ["dev", "stage", "prod"]
@@ -33,7 +33,7 @@ DATABASE_URL=postgresql+asyncpg://{db_user}:{db_password}@{db_host}:{db_port}/{d
ENVIRONMENT={environment}
HASHIDS_SALT={hashids_salt}
ENCODER_ALPHABET={encoder_alphabet}
ALLOWED_ORIGINS={allowed_origins}
ALLOW_ORIGINS={allow_origins}
"""
backend_env_path = Path("backend/.env")