vchikalkin 0039de3499 Update proxy controller and environment variable for cache-proxy service
- Changed the route prefix of the ProxyController from `/proxy` to `/api` to align with the new API structure.
- Updated the default value of the `URL_GRAPHQL_CACHED` environment variable to reflect the new route, ensuring proper integration with the GraphQL service.
2025-10-06 21:54:08 +03:00

14 lines
414 B
TypeScript

/* eslint-disable sonarjs/no-clear-text-protocols */
/* eslint-disable unicorn/prevent-abbreviations */
import { z } from 'zod';
export const envSchema = z.object({
BOT_TOKEN: z.string(),
LOGIN_GRAPHQL: z.string(),
PASSWORD_GRAPHQL: z.string(),
URL_GRAPHQL: z.string(),
URL_GRAPHQL_CACHED: z.string().default('http://cache-proxy:5000/api/graphql'),
});
export const env = envSchema.parse(process.env);