Skip to content

Commit

Permalink
removed config comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Rayahhhmed committed Jun 17, 2024
1 parent e219745 commit 3b522a0
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions server/src/config.ts
Original file line number Diff line number Diff line change
@@ -1,30 +1,3 @@
// export enum Env {
// DEV = 'dev',
// PROD = 'production',
// }

// interface Config {
// auto: string;
// client: string;
// redirect_link: string;
// }

// export const API_CONFIG: Record<Env, Config> = {
// [Env.DEV]: {
// auto: 'localhost:50051',
// client: 'http://localhost:5173',
// redirect_link: 'http://localhost:5173',
// },
// [Env.PROD]: {
// auto: process.env.AUTO_SERVER_HOST_NAME
// ? 'localhost:50051'
// : `${process.env.AUTO_SERVER_HOST_NAME}:${process.env.AUTO_SERVER_HOST_PORT}`,
// client: `${process.env.CLIENT_HOST_NAME}:${process.env.CLIENT_HOST_PORT}`,
// redirect_link: `${process.env.CLIENT_HOST_NAME}:${process.env.CLIENT_HOST_PORT}`,
// },
// };
// export const config: Config = API_CONFIG[process.env.NODE_ENV || Env.DEV];

import { registerAs } from '@nestjs/config';

export default registerAs('app', () => ({
Expand Down

0 comments on commit 3b522a0

Please sign in to comment.