diff --git a/src/frontend/apps/desk/src/custom-next.d.ts b/src/frontend/apps/desk/src/custom-next.d.ts new file mode 100644 index 0000000..b14e688 --- /dev/null +++ b/src/frontend/apps/desk/src/custom-next.d.ts @@ -0,0 +1,11 @@ +/* eslint-disable @typescript-eslint/no-unused-vars */ + +namespace NodeJS { + interface ProcessEnv { + NEXT_PUBLIC_API_URL: string; + NEXT_PUBLIC_KEYCLOAK_URL: string; + NEXT_PUBLIC_KEYCLOAK_REALM: string; + NEXT_PUBLIC_KEYCLOAK_CLIENT_ID: string; + NEXT_PUBLIC_KEYCLOAK_LOGIN: string; + } +} diff --git a/src/frontend/apps/desk/tsconfig.json b/src/frontend/apps/desk/tsconfig.json index e59724b..ebff7dc 100644 --- a/src/frontend/apps/desk/tsconfig.json +++ b/src/frontend/apps/desk/tsconfig.json @@ -22,6 +22,12 @@ "@/*": ["./src/*"] } }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], + "include": [ + "src/custom-next.d.ts", + "next-env.d.ts", + "**/*.ts", + "**/*.tsx", + ".next/types/**/*.ts" + ], "exclude": ["node_modules"] }