Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions packages/app-builder/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,25 @@
# REQUIRED SETTINGS
#

ENV=development
# Set to "production" if deploying instead of developing
NODE_ENV=development

# In production, generate a new random secret to sign your user's sessions. You can use this command to do so:
# - openssl rand -base64 128 | tr -d "\n"
SESSION_SECRET=
SESSION_MAX_AGE=43200

# Set the different URLs used to access your Marble platform, where:
# - MARBLE_API_URL is the URL your frontend process can use to reach the API (this can be a private URL).

# MARBLE_API_URL is the URL your frontend process can use to reach the API (this can be a private URL)
MARBLE_API_URL=http://localhost:8080

#
# OPTIONAL SETTINGS
#

# Set it to "production" if deploying instead of developing. Defaults to "production"
NODE_ENV=development

# Set to anything other than "development" for production. Defaults to "production"
ENV=development

# Configure various external integrations.
SEGMENT_WRITE_KEY=
DISABLE_SEGMENT=false
Expand Down
4 changes: 2 additions & 2 deletions packages/app-builder/src/utils/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import * as z from 'zod/v4';
* List of all public env vars to defined on each deployed environments
*/
const PublicEnvVarsSchema = z.object({
ENV: z.string(),
NODE_ENV: z.string(),
ENV: z.string().optional().default('production'),
NODE_ENV: z.string().optional().default('production'),
APP_VERSION: z.string().optional(),

SESSION_MAX_AGE: z.string().optional(),
Expand Down