mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2026-01-20 13:52:18 +01:00
11 lines
320 B
TypeScript
11 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;
|
|
}
|