Skip to content

Commit

Permalink
enables EUDR module by default
Browse files Browse the repository at this point in the history
  • Loading branch information
andresgnlez committed Jun 12, 2024
1 parent ed90293 commit c4ae9ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/src/env.mjs
Original file line number Diff line number Diff line change
@@ -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());

Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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,
},
Expand Down

0 comments on commit c4ae9ed

Please sign in to comment.