Skip to content

Commit

Permalink
Display the current env
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyxiao committed Oct 30, 2023
1 parent 99a4574 commit e2a037a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions apps/app-config/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Pass a valid http(s):// url for stateless mode. Sync data and metadata be sent t
INNGEST_EVENT_KEY: z.string(),
INNGEST_SIGNING_KEY: z.string(),
NANGO_SECRET_KEY: z.string(),
VERCEL_ENV: z.enum(['production', 'preview', 'development']),
},
client: {
NEXT_PUBLIC_SUPABASE_URL: z.string(),
Expand All @@ -35,6 +36,7 @@ Pass a valid http(s):// url for stateless mode. Sync data and metadata be sent t
NEXT_PUBLIC_COMMANDBAR_ORG_ID: z.string().optional(),
},
runtimeEnv: overrideFromLocalStorage({
VERCEL_ENV: process.env['VERCEL_ENV'],
CLERK_SECRET_KEY: process.env['CLERK_SECRET_KEY'],
INNGEST_EVENT_KEY: process.env['INNGEST_EVENT_KEY'],
INNGEST_SIGNING_KEY: process.env['INNGEST_SIGNING_KEY'],
Expand Down
6 changes: 5 additions & 1 deletion apps/web/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import './global.css'

import {env} from '@usevenice/app-config/env'

export const metadata = {
title: 'Venice — Financial data, fast.',
title: `${
env.VERCEL_ENV === 'production' ? '' : `[${env.VERCEL_ENV}] `
}Venice — Financial data, fast.`,
icons: [{url: '/favicon.svg', type: 'image/svg+xml'}],
}

Expand Down

0 comments on commit e2a037a

Please sign in to comment.