mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-23 07:09:01 +01:00
feat: moved posthog key to process env (#3490)
This commit is contained in:
parent
c322baa9c8
commit
dc77ee7c04
2
packages/bruno-app/.gitignore
vendored
2
packages/bruno-app/.gitignore
vendored
@ -32,3 +32,5 @@ yarn-error.log*
|
|||||||
# next.js
|
# next.js
|
||||||
.next/
|
.next/
|
||||||
out/
|
out/
|
||||||
|
|
||||||
|
.env
|
@ -8,7 +8,7 @@ import StyledWrapper from './StyledWrapper';
|
|||||||
import { useTheme } from 'providers/Theme/index';
|
import { useTheme } from 'providers/Theme/index';
|
||||||
|
|
||||||
let posthogClient = null;
|
let posthogClient = null;
|
||||||
const posthogApiKey = 'phc_7gtqSrrdZRohiozPMLIacjzgHbUlhalW1Bu16uYijMR';
|
const posthogApiKey = process.env.NEXT_PUBLIC_POSTHOG_API_KEY;
|
||||||
const getPosthogClient = () => {
|
const getPosthogClient = () => {
|
||||||
if (posthogClient) {
|
if (posthogClient) {
|
||||||
return posthogClient;
|
return posthogClient;
|
||||||
|
@ -13,7 +13,7 @@ import platformLib from 'platform';
|
|||||||
import { uuid } from 'utils/common';
|
import { uuid } from 'utils/common';
|
||||||
|
|
||||||
const { publicRuntimeConfig } = getConfig();
|
const { publicRuntimeConfig } = getConfig();
|
||||||
const posthogApiKey = 'phc_7gtqSrrdZRohiozPMLIacjzgHbUlhalW1Bu16uYijMR';
|
const posthogApiKey = process.env.NEXT_PUBLIC_POSTHOG_API_KEY;
|
||||||
let posthogClient = null;
|
let posthogClient = null;
|
||||||
|
|
||||||
const isPlaywrightTestRunning = () => {
|
const isPlaywrightTestRunning = () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user