mirror of
https://github.com/mastodon/mastodon.git
synced 2025-05-11 20:21:10 +00:00
12 lines
320 B
TypeScript
12 lines
320 B
TypeScript
export function isDevelopment() {
|
|
if (typeof process !== 'undefined')
|
|
return process.env.NODE_ENV === 'development';
|
|
else return import.meta.env.DEV;
|
|
}
|
|
|
|
export function isProduction() {
|
|
if (typeof process !== 'undefined')
|
|
return process.env.NODE_ENV === 'production';
|
|
else return import.meta.env.PROD;
|
|
}
|