add(env): fallback variables + avoid types errors

This commit is contained in:
Walid 2022-03-18 16:17:31 +01:00
parent c61b05afa4
commit aad9e9d9a9
No known key found for this signature in database
GPG Key ID: 50CE2725C6AF36B0

4
utils/config.ts Normal file
View File

@ -0,0 +1,4 @@
export const PROJECT_NAME =
process.env.NEXT_PUBLIC_PROJECT_NAME != null
? process.env.NEXT_PUBLIC_PROJECT_NAME
: 'unknown project'