Skip to content

Commit ef00001

Browse files
committed
feat: add API_RESPONSE_DELAY env variable
1 parent 37117fe commit ef00001

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.env.template

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ PLAYGROUND_DEV_SERVER_PORT=3750
7676
GATEWAY_DEV_SERVER_PORT=3500
7777
# The port to use for the Vite (full web app) development server
7878
WEB_DEV_SERVER_PORT=3000
79-
79+
# Set an arbitrary delay (in milliseconds) for all responses (useful for testing suspense)
80+
API_RESPONSE_DELAY=0
8081
# If set to 'true' and NODE_ENV === 'development', then login is automated
8182
VITE_DEV_BYPASS_AUTH=false
8283
# The username to use if VITE_DEV_BYPASS_AUTH is set to true

apps/api/src/configuration/configuration.schema.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export const $Configuration = z
1414
.object({
1515
API_DEV_SERVER_PORT: z.coerce.number().positive().int().optional(),
1616
API_PROD_SERVER_PORT: z.coerce.number().positive().int().default(80),
17+
API_RESPONSE_DELAY: z.coerce.number().positive().int().optional(),
1718
DANGEROUSLY_DISABLE_PBKDF2_ITERATION: $BooleanString.default(false),
1819
DEBUG: $BooleanString,
1920
GATEWAY_API_KEY: z.string().min(32),

0 commit comments

Comments
 (0)