Skip to content

Commit

Permalink
fix: 🐛 ai simulation config
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Ruck <[email protected]>
  • Loading branch information
Manuel Ruck committed Aug 17, 2024
1 parent 5951303 commit a538be4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bundestag.io/admin/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
.git
node_modules
logs
.env*
.env
.env.example
.next
*.log
.turbo
Expand Down
7 changes: 7 additions & 0 deletions bundestag.io/admin/src/lib/config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { log } from './logger';

const errors: string[] = [];
const AI_SIMULATION = process.env.AI_SIMULATION === 'true';

Expand All @@ -15,6 +17,11 @@ if (errors.length > 0) {
throw new Error(errors.join('\n'));
}

if (AI_SIMULATION) {
log.info('AI_SIMULATION is enabled');
log.debug(`AI_SIMULATION is set to ${AI_SIMULATION}`);
}

export const config = {
BUNDESTAGIO_SERVER_URL: process.env.BUNDESTAGIO_SERVER_URL!,
AI_SERVER_URL: process.env.AI_SERVER_URL,
Expand Down

0 comments on commit a538be4

Please sign in to comment.