feat: add isProduction function

This commit is contained in:
Stefan Imhoff
2023-06-13 12:39:03 +02:00
parent 74e77b8d25
commit 45bbc98268
2 changed files with 2 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
export * from './date'; export * from './date';
export * from './format-posts'; export * from './format-posts';
export * from './is-production';
export * from './pick-two-random-colors'; export * from './pick-two-random-colors';
export * from './remark-reading-time'; export * from './remark-reading-time';
export * from './remark-widont'; export * from './remark-widont';

View File

@@ -0,0 +1 @@
export const isProduction = process.env.NODE_ENV === 'production';