Skip to content

Commit

Permalink
chore: remove unused env
Browse files Browse the repository at this point in the history
  • Loading branch information
mxkaske committed Dec 21, 2024
1 parent 4d3e548 commit b65ef39
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 13 deletions.
2 changes: 0 additions & 2 deletions apps/server/src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ export const env = createEnv({
UPSTASH_REDIS_REST_TOKEN: z.string().min(1),
FLY_REGION: z.enum(flyRegions),
CRON_SECRET: z.string(),
JITSU_WRITE_KEY: z.string().optional(),
JITSU_HOST: z.string().optional(),
SCREENSHOT_SERVICE_URL: z.string(),
QSTASH_TOKEN: z.string(),
NODE_ENV: z.string().default("development"),
Expand Down
4 changes: 0 additions & 4 deletions apps/web/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ TINY_BIRD_API_KEY=tiny-bird-api-key
DATABASE_URL=file:./../../openstatus-dev.db
DATABASE_AUTH_TOKEN=any-token

# JITSU - no need to touch on local development
# JITSU_HOST="https://your-jitsu-domain.com"
# JITSU_WRITE_KEY="jitsu-key:jitsu-secret"

# Solves 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY', see https://github.com/nextauthjs/next-auth/issues/3580
# NODE_TLS_REJECT_UNAUTHORIZED="0"

Expand Down
4 changes: 2 additions & 2 deletions packages/analytics/.env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
JITSU_HOST="https://your-jitsu-domain.com"
JITSU_WRITE_KEY="jitsu-key:jitsu-secret"
OPENPANEL_CLIENT_ID=
OPENPANEL_CLIENT_SECRET=
2 changes: 1 addition & 1 deletion packages/analytics/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export type IdentifyProps = {
};

export async function setupAnalytics(props: IdentifyProps) {
if (process.env.NODE_ENV === "development") {
if (process.env.NODE_ENV !== "production") {
return noop();
}

Expand Down
4 changes: 0 additions & 4 deletions packages/api/src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ export const env = createEnv({
TEAM_ID_VERCEL: z.string(),
VERCEL_AUTH_BEARER_TOKEN: z.string(),
TINY_BIRD_API_KEY: z.string(),
JITSU_HOST: z.string().optional(),
JITSU_WRITE_KEY: z.string().optional(),
},

runtimeEnv: {
Expand All @@ -18,8 +16,6 @@ export const env = createEnv({
TEAM_ID_VERCEL: process.env.TEAM_ID_VERCEL,
VERCEL_AUTH_BEARER_TOKEN: process.env.VERCEL_AUTH_BEARER_TOKEN,
TINY_BIRD_API_KEY: process.env.TINY_BIRD_API_KEY,
JITSU_HOST: process.env.JITSU_HOST,
JITSU_WRITE_KEY: process.env.JITSU_WRITE_KEY,
},
skipValidation: process.env.NODE_ENV === "test",
});

0 comments on commit b65ef39

Please sign in to comment.