mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-23 12:02:10 +03:00
3f98c2ddbe
The Pull Request adds support for local HTTPS configuration and introduces a new environment variable for the app's base URL. - Added new environment variable REACT_APP_BASE_URL in .env.example. - Introduced logic to utilize SSL certificates for local HTTPS in vite.config.ts. - Added validation to ensure SSL key and certificate paths are defined for HTTPS. - Included support for dynamic base URL setting based on the environment configuration. - Enhanced server configuration in vite.config.ts to handle HTTPS and local development. --------- Co-authored-by: Félix Malfait <felix@twenty.com>
11 lines
360 B
Plaintext
11 lines
360 B
Plaintext
REACT_APP_SERVER_BASE_URL=http://localhost:3000
|
|
GENERATE_SOURCEMAP=false
|
|
|
|
# ———————— Optional ————————
|
|
# REACT_APP_PORT=3001
|
|
# CHROMATIC_PROJECT_TOKEN=
|
|
# VITE_DISABLE_TYPESCRIPT_CHECKER=true
|
|
# VITE_DISABLE_ESLINT_CHECKER=true
|
|
# VITE_ENABLE_SSL=false
|
|
# SSL_KEY_PATH="./certs/your-cert.key"
|
|
# SSL_CERT_PATH="./certs/your-cert.crt" |