Files
tom goriunovandGitHub dbd4452de4 workaround for ENV replacement script (#1212)
* base implementation of client script with envs values

* better ENVs setup for pw tests

* fix tests
2023-09-29 10:45:23 -03:00

25 lines
463 B
TypeScript

import type { Feature } from './types';
import { getEnvValue } from '../utils';
const projectToken = getEnvValue('NEXT_PUBLIC_MIXPANEL_PROJECT_TOKEN');
const title = 'Mixpanel analytics';
const config: Feature<{ projectToken: string }> = (() => {
if (projectToken) {
return Object.freeze({
title,
isEnabled: true,
projectToken,
});
}
return Object.freeze({
title,
isEnabled: false,
});
})();
export default config;