mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage-server
synced 2026-04-12 02:18:18 +00:00
chore: scaffold NestJS sidecar with config, CORS, and dependency setup
This commit is contained in:
18
src/config/configuration.ts
Normal file
18
src/config/configuration.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
export default () => ({
|
||||
port: parseInt(process.env.PORT ?? '4100', 10),
|
||||
corsOrigin: process.env.CORS_ORIGIN ?? 'http://localhost:5173',
|
||||
platform: {
|
||||
graphqlUrl: process.env.PLATFORM_GRAPHQL_URL ?? 'http://localhost:4000/graphql',
|
||||
apiKey: process.env.PLATFORM_API_KEY ?? '',
|
||||
},
|
||||
exotel: {
|
||||
apiKey: process.env.EXOTEL_API_KEY ?? '',
|
||||
apiToken: process.env.EXOTEL_API_TOKEN ?? '',
|
||||
accountSid: process.env.EXOTEL_ACCOUNT_SID ?? '',
|
||||
subdomain: process.env.EXOTEL_SUBDOMAIN ?? 'api.exotel.com',
|
||||
webhookSecret: process.env.EXOTEL_WEBHOOK_SECRET ?? '',
|
||||
},
|
||||
ai: {
|
||||
anthropicApiKey: process.env.ANTHROPIC_API_KEY ?? '',
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user