From 9cfa575ee93355afd94945ce619d4606ea2e17db Mon Sep 17 00:00:00 2001 From: solufa Date: Sat, 24 Aug 2024 16:24:01 +0900 Subject: [PATCH] chore: remove unused env --- .gitignore | 4 ++-- client/.env.example | 2 +- client/utils/envValues.ts | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 5153b2f..1c3addb 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,7 @@ node_modules/ *.pem tsconfig.tsbuildinfo .env -**/$*.ts +$*.ts # debug npm-debug.log* @@ -15,7 +15,7 @@ npm-debug.log* client/.next/ client/out/ client/api/* -**/*.css.d.ts* +*.css.d.ts* # server server/index.js* diff --git a/client/.env.example b/client/.env.example index 30c4aba..ea80341 100644 --- a/client/.env.example +++ b/client/.env.example @@ -1,5 +1,5 @@ NEXT_PUBLIC_API_BASE_PATH=/api -NEXT_PUBLIC_COGNITO_POOL_ENDPOINT=http://localhost:5050 NEXT_PUBLIC_SERVER_PORT=31577 +NEXT_PUBLIC_COGNITO_POOL_ENDPOINT=http://localhost:5050 NEXT_PUBLIC_COGNITO_USER_POOL_ID=ap-northeast-1_frourio NEXT_PUBLIC_COGNITO_USER_POOL_CLIENT_ID=catapult diff --git a/client/utils/envValues.ts b/client/utils/envValues.ts index 10a2927..e834403 100644 --- a/client/utils/envValues.ts +++ b/client/utils/envValues.ts @@ -7,7 +7,6 @@ const NEXT_PUBLIC_COGNITO_USER_POOL_ID = z const NEXT_PUBLIC_COGNITO_USER_POOL_CLIENT_ID = z .string() .parse(process.env.NEXT_PUBLIC_COGNITO_USER_POOL_CLIENT_ID); -const NEXT_PUBLIC_SERVER_PORT = z.string().optional().parse(process.env.NEXT_PUBLIC_SERVER_PORT); const NEXT_PUBLIC_COGNITO_POOL_ENDPOINT = z .string() .parse(process.env.NEXT_PUBLIC_COGNITO_POOL_ENDPOINT); @@ -17,5 +16,4 @@ export { NEXT_PUBLIC_COGNITO_POOL_ENDPOINT, NEXT_PUBLIC_COGNITO_USER_POOL_CLIENT_ID, NEXT_PUBLIC_COGNITO_USER_POOL_ID, - NEXT_PUBLIC_SERVER_PORT, };