mirror of
https://github.com/Kong/insomnia
synced 2024-11-07 22:30:15 +00:00
Use the segment development write key for smoketests (#4605)
This commit is contained in:
parent
600e0af1fd
commit
1b7951bdc6
@ -20,7 +20,7 @@ export const isLinux = () => getAppPlatform() === 'linux';
|
|||||||
export const isWindows = () => getAppPlatform() === 'win32';
|
export const isWindows = () => getAppPlatform() === 'win32';
|
||||||
export const getAppEnvironment = () => process.env.INSOMNIA_ENV || 'production';
|
export const getAppEnvironment = () => process.env.INSOMNIA_ENV || 'production';
|
||||||
export const isDevelopment = () => getAppEnvironment() === 'development';
|
export const isDevelopment = () => getAppEnvironment() === 'development';
|
||||||
export const getSegmentWriteKey = () => appConfig.segmentWriteKeys[isDevelopment() ? 'development' : 'production'];
|
export const getSegmentWriteKey = () => appConfig.segmentWriteKeys[(isDevelopment() || process.env.PLAYWRIGHT) ? 'development' : 'production'];
|
||||||
export const getAppBuildDate = () => new Date(process.env.BUILD_DATE ?? '').toLocaleDateString();
|
export const getAppBuildDate = () => new Date(process.env.BUILD_DATE ?? '').toLocaleDateString();
|
||||||
|
|
||||||
export const getBrowserUserAgent = () => encodeURIComponent(
|
export const getBrowserUserAgent = () => encodeURIComponent(
|
||||||
|
Loading…
Reference in New Issue
Block a user