Don’t be so strict about the APP_ENV
🚀 Publish Trigger.dev Docker / e2e (push) Failing after 11m22s
🚀 Publish Trigger.dev Docker / units (push) Failing after 11m23s
🚀 Publish Trigger.dev Docker / typecheck (push) Failing after 11m23s
🚀 Publish Trigger.dev Docker / publish (push) Has been skipped

This commit is contained in:
Eric Allam
2023-11-27 16:06:50 +00:00
parent 3885bf5579
commit 9fde5bbd59
2 changed files with 4 additions and 20 deletions
+1 -8
View File
@@ -18,14 +18,7 @@ const EnvironmentSchema = z.object({
REMIX_APP_PORT: z.string().optional(),
LOGIN_ORIGIN: z.string().default("http://localhost:3030"),
APP_ORIGIN: z.string().default("http://localhost:3030"),
APP_ENV: z
.union([
z.literal("development"),
z.literal("production"),
z.literal("test"),
z.literal("staging"),
])
.default(process.env.NODE_ENV),
APP_ENV: z.string().default(process.env.NODE_ENV),
SECRET_STORE: SecretStoreOptionsSchema.default("DATABASE"),
POSTHOG_PROJECT_KEY: z.string().optional(),
TELEMETRY_TRIGGER_API_KEY: z.string().optional(),
+3 -12
View File
@@ -158,19 +158,10 @@ export const obfuscateApiKey = (apiKey: string) => {
return `${prefix}_${slug}_${"*".repeat(secretPart.length)}`;
};
export function appEnvTitleTag(appEnv?: "test" | "production" | "development" | "staging"): string {
if (!appEnv) {
export function appEnvTitleTag(appEnv?: string): string {
if (!appEnv || appEnv === "production") {
return "";
}
switch (appEnv) {
case "test":
return " (test)";
case "production":
return "";
case "development":
return " (dev)";
case "staging":
return " (staging)";
}
return ` (${appEnv})`
}