diff --git a/apps/web/.env b/apps/web/.env index 5b682d97b..b78e951dc 100644 --- a/apps/web/.env +++ b/apps/web/.env @@ -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 diff --git a/apps/web/.env.sample b/apps/web/.env.sample index 25680757b..2cb957307 100644 --- a/apps/web/.env.sample +++ b/apps/web/.env.sample @@ -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 diff --git a/apps/web/app/constants.ts b/apps/web/app/constants.ts index 628192e71..6f4e68d77 100644 --- a/apps/web/app/constants.ts +++ b/apps/web/app/constants.ts @@ -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, diff --git a/apps/web/pages/_app.tsx b/apps/web/pages/_app.tsx index 73c84d0d4..fd09b3eac 100644 --- a/apps/web/pages/_app.tsx +++ b/apps/web/pages/_app.tsx @@ -82,8 +82,8 @@ const MyApp = ({ Component, pageProps }: AppProps) => { MyApp.getInitialProps = async ({ Component, ctx }: { Component: NextPage; 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 diff --git a/render.yaml b/render.yaml index 0d45b9e87..4a60baf46 100644 --- a/render.yaml +++ b/render.yaml @@ -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