diff --git a/.env b/.env index 9ed14ae79e11b9116b7bf3026deda8917940ed03..3f191e1fdfb47f26281eeb4f6ea52ea423ed0d8b 100644 --- a/.env +++ b/.env @@ -2,3 +2,4 @@ NEXT_PUBLIC_BASE_API_URL = 'https://corsproxy.io/?https://lux1.atcomp.pl/minerva/api' NEXT_PUBLIC_BASE_NEW_API_URL = 'https://corsproxy.io/?https://lux1.atcomp.pl/minerva/new_api/' NEXT_PUBLIC_PROJECT_ID = 'pdmap_appu_test' +ZOD_SEED = 997 diff --git a/next.config.js b/next.config.js index 1b307ecc05742d534f2bf1906896a393b59b587e..eebeaf4de2ae021a46f39f16ce07cdfdacc14066 100644 --- a/next.config.js +++ b/next.config.js @@ -8,7 +8,7 @@ const nextConfig = { BASE_API_URL: process.env.NEXT_PUBLIC_BASE_API_URL || '', BASE_MAP_IMAGES_URL: process.env.BASE_MAP_IMAGES_URL || '', PROJECT_ID: process.env.NEXT_PUBLIC_PROJECT_ID || '', - ZOD_SEED: 997, + ZOD_SEED: process.env.ZOD_SEED || 123, }, }; diff --git a/src/constants/index.ts b/src/constants/index.ts index ab67ce6aa19944d9c5a885c3823d465cd0b30b5d..e85e24dc568f5deb331a245f1fc3d927791b4fa2 100644 --- a/src/constants/index.ts +++ b/src/constants/index.ts @@ -1,7 +1,9 @@ +/* eslint-disable no-magic-numbers */ + export const BASE_API_URL = process.env.NEXT_PUBLIC_BASE_API_URL || ''; export const BASE_MAP_IMAGES_URL = process.env.BASE_MAP_IMAGES_URL || ''; export const BASE_NEW_API_URL = process.env.NEXT_PUBLIC_BASE_NEW_API_URL || ''; export const PROJECT_ID = process.env.NEXT_PUBLIC_PROJECT_ID || ''; -export const ZOD_SEED = 997; +export const ZOD_SEED = parseInt(process.env.ZOD_SEED || '123', 10); export const BIO_ENTITY = 'bioEntity'; export const DRUGS_CHEMICALS_MIRNA = ['drugs', 'chemicals', 'mirna'];