diff --git a/client/src/env.mjs b/client/src/env.mjs index 0294ca03d..d434f92a4 100644 --- a/client/src/env.mjs +++ b/client/src/env.mjs @@ -1,5 +1,5 @@ -import {createEnv} from '@t3-oss/env-nextjs'; -import {z} from 'zod'; +import { createEnv } from '@t3-oss/env-nextjs'; +import { z } from 'zod'; const castToBoolean = z.preprocess((/** @type {string} */ val) => val === 'true', z.boolean()); @@ -30,7 +30,7 @@ export const env = createEnv({ // ? URL (including protocol) of the API NEXT_PUBLIC_API_URL: z.string().url(), // ? enables access to EUDR page - NEXT_PUBLIC_ENABLE_EUDR: castToBoolean.default(true), + NEXT_PUBLIC_ENABLE_EUDR: castToBoolean.default('true'), NEXT_PUBLIC_PLANET_API_KEY: z.string().default('PLAK6679039df83f414faf798ba4ad4530db'), NEXT_PUBLIC_CARTO_FOREST_ACCESS_TOKEN: z .string() @@ -58,7 +58,7 @@ export const env = createEnv({ NEXT_PUBLIC_PLANET_API_KEY: process.env.NEXT_PUBLIC_PLANET_API_KEY, NEXT_PUBLIC_CARTO_FOREST_ACCESS_TOKEN: process.env.NEXT_PUBLIC_CARTO_FOREST_ACCESS_TOKEN, NEXT_PUBLIC_CARTO_DEFORESTATION_ACCESS_TOKEN: - process.env.NEXT_PUBLIC_CARTO_DEFORESTATION_ACCESS_TOKEN, + process.env.NEXT_PUBLIC_CARTO_DEFORESTATION_ACCESS_TOKEN, NEXT_PUBLIC_CARTO_RADD_ACCESS_TOKEN: process.env.NEXT_PUBLIC_CARTO_RADD_ACCESS_TOKEN, NEXT_PUBLIC_FILE_UPLOADER_MAX_SIZE: process.env.NEXT_PUBLIC_FILE_UPLOADER_MAX_SIZE, },