♻️ Add env variable validation
This commit is contained in:
1 parent
18e0e2a8ff
commit
3990c1a4ad
12 files changed
+140
-25
No files matched your search
@@ -1,8 +1,10 @@
|
||||
import { env } from '~/env';
|
||||
|
||||
import packageJson from '../../../package.json';
|
||||
|
||||
const getServerPackageVersion = (): string | undefined => packageJson.version;
|
||||
|
||||
const getServerNodeEnvironment = (): 'development' | 'production' | 'test' => process.env.NODE_ENV;
|
||||
const getServerNodeEnvironment = () => env.NODE_ENV;
|
||||
|
||||
const getDependencies = (): PackageJsonDependencies => packageJson.dependencies;
|
||||
|
||||
|
||||
Reference in new issue
Block a user