diff --git a/src/config.ts b/src/config.ts index b586b34..a9dee12 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,7 +1,7 @@ -if (!process.env.VITE_DATABASE_CONFIG) { +if (!import.meta.env.VITE_DATABASE_CONFIG) { throw new Error('VITE_DATABASE_CONFIG must be set in .env'); } -const databaseSecrets: { databaseName: string; user: string } = JSON.parse(process.env.VITE_DATABASE_CONFIG); +const databaseSecrets: { databaseName: string; user: string } = JSON.parse(import.meta.env.VITE_DATABASE_CONFIG); const config = { MIN_DESKTOP_WIDTH: 768,