From aad9e9d9a96e29c5e97dc4d2d85c316743eca35b Mon Sep 17 00:00:00 2001 From: Walidoux Date: Fri, 18 Mar 2022 16:17:31 +0100 Subject: [PATCH] add(env): fallback variables + avoid types errors --- utils/config.ts | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 utils/config.ts diff --git a/utils/config.ts b/utils/config.ts new file mode 100644 index 0000000..4d3a4d9 --- /dev/null +++ b/utils/config.ts @@ -0,0 +1,4 @@ +export const PROJECT_NAME = + process.env.NEXT_PUBLIC_PROJECT_NAME != null + ? process.env.NEXT_PUBLIC_PROJECT_NAME + : 'unknown project'