Skip to content

Commit

Permalink
chore: rename env vars for Jitsu
Browse files Browse the repository at this point in the history
  • Loading branch information
evereq committed Nov 14, 2023
1 parent 668664c commit 5deb2c2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions apps/web/.env
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ NEXT_PUBLIC_SENTRY_DSN=
NEXT_PUBLIC_SENTRY_DEBUG=false # true/false

# JITSU
NEXT_JITSU_BROWSER_URL=
NEXT_JITSU_BROWSER_WRITE_KEY=
NEXT_PUBLIC_JITSU_BROWSER_URL=
NEXT_PUBLIC_JITSU_BROWSER_WRITE_KEY=

# Github Integration
NEXT_PUBLIC_GITHUB_APP_NAME=ever-github
Expand Down
4 changes: 2 additions & 2 deletions apps/web/.env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ NEXT_PUBLIC_SENTRY_DSN=
NEXT_PUBLIC_SENTRY_DEBUG=false # true/false

# Jitsu
NEXT_JITSU_BROWSER_URL=
NEXT_JITSU_BROWSER_WRITE_KEY=
NEXT_PUBLIC_JITSU_BROWSER_URL=
NEXT_PUBLIC_JITSU_BROWSER_WRITE_KEY=

# Github Integration
NEXT_PUBLIC_GITHUB_APP_NAME=ever-github
Expand Down
4 changes: 2 additions & 2 deletions apps/web/app/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ export const BOARD_FIREBASE_CONFIG = process.env.NEXT_PUBLIC_BOARD_FIREBASE_CONF

// Jitsu
export const jitsuConfiguration: () => JitsuOptions = () => ({
host: process.env.NEXT_JITSU_BROWSER_URL || '',
writeKey: process.env.NEXT_JITSU_BROWSER_WRITE_KEY || '',
host: process.env.NEXT_PUBLIC_JITSU_BROWSER_URL || '',
writeKey: process.env.NEXT_PUBLIC_JITSU_BROWSER_WRITE_KEY || '',
// if enabled - events will be sent to the console but no data sent to Jitsu.
// Strange this is not mentioned in the documentation https://github.com/jitsucom/jitsu/blob/35c4ecaff54d61a87853381cb17262b7bfbd4a6e/libs/jitsu-js/src/jitsu.ts#L40
echoEvents: false,
Expand Down
4 changes: 2 additions & 2 deletions apps/web/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ const MyApp = ({ Component, pageProps }: AppProps) => {

MyApp.getInitialProps = async ({ Component, ctx }: { Component: NextPage<AppProps>; ctx: NextPageContext }) => {
// Recover environment variables
const jitsuHost = process.env.NEXT_JITSU_BROWSER_URL;
const jitsuWriteKey = process.env.NEXT_JITSU_BROWSER_WRITE_KEY;
const jitsuHost = process.env.NEXT_PUBLIC_JITSU_BROWSER_URL;
const jitsuWriteKey = process.env.NEXT_PUBLIC_JITSU_BROWSER_WRITE_KEY;

const jitsuConf = jitsuConfiguration();
// Call the static method getInitialProps
Expand Down
4 changes: 2 additions & 2 deletions render.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ services:
sync: false
- key: NEXT_PUBLIC_SENTRY_DEBUG
value: false
- key: NEXT_JITSU_BROWSER_URL
- key: NEXT_PUBLIC_JITSU_BROWSER_URL
sync: false
- key: NEXT_JITSU_BROWSER_WRITE_KEY
- key: NEXT_PUBLIC_JITSU_BROWSER_WRITE_KEY
sync: false
- key: NEXT_PUBLIC_GITHUB_APP_NAME
value: ever-github
Expand Down

0 comments on commit 5deb2c2

Please sign in to comment.