Skip to content

Commit a8a6f52

Browse files
committed
Set defaults for api public url
1 parent df1ff65 commit a8a6f52

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.env.example

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,12 @@ API_ENVIRONMENT_USER=your_api_automation_user
3636
API_ENVIRONMENT_USER_PASSWORD=your_api_automation_password
3737

3838
# REQUIRED: Public API URL for emails (password reset links, welcome emails, etc.)
39-
# This should be the externally-accessible URL that users can reach
39+
# This should be the externally-accessible URL that users can reach.
40+
# IMPORTANT: This must match the deployment environment:
41+
# - Production: https://api.trends.earth
42+
# - Staging: https://api-staging.trends.earth
43+
# - Development: http://localhost:3000
44+
# Password reset emails will use this URL in the reset link.
4045
API_PUBLIC_URL=https://api.trends.earth
4146

4247
# OPTIONAL: Internal API URL for execution containers (bypasses rate limiting)

.github/workflows/codedeploy_production.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ jobs:
182182
# Rollbar
183183
ROLLBAR_SCRIPT_TOKEN: ${{ secrets.ROLLBAR_SCRIPT_TOKEN }}
184184
ROLLBAR_SERVER_TOKEN: ${{ secrets.ROLLBAR_SERVER_TOKEN }}
185-
API_PUBLIC_URL: ${{ vars.PRODUCTION_API_PUBLIC_URL }}
185+
API_PUBLIC_URL: ${{ vars.PRODUCTION_API_PUBLIC_URL || 'https://api.trends.earth' }}
186186
# S3 Configuration
187187
SCRIPTS_S3_BUCKET: ${{ vars.SCRIPTS_S3_BUCKET }}
188188
SCRIPTS_S3_PREFIX: ${{ vars.PRODUCTION_SCRIPTS_S3_PREFIX || 'api-files/scripts/production' }}

.github/workflows/codedeploy_staging.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ jobs:
183183
# Rollbar
184184
ROLLBAR_SCRIPT_TOKEN: ${{ secrets.ROLLBAR_SCRIPT_TOKEN }}
185185
ROLLBAR_SERVER_TOKEN: ${{ secrets.ROLLBAR_SERVER_TOKEN }}
186-
API_PUBLIC_URL: ${{ vars.STAGING_API_PUBLIC_URL }}
186+
API_PUBLIC_URL: ${{ vars.STAGING_API_PUBLIC_URL || 'https://api-staging.trends.earth' }}
187187
# S3 Configuration
188188
SCRIPTS_S3_BUCKET: ${{ vars.SCRIPTS_S3_BUCKET }}
189189
SCRIPTS_S3_PREFIX: ${{ vars.STAGING_SCRIPTS_S3_PREFIX || 'api-files/scripts/staging' }}

0 commit comments

Comments
 (0)