Skip to content

Commit

Permalink
feat: rename env.DEFAULT_XXX to env.COGNITO_XXX
Browse files Browse the repository at this point in the history
  • Loading branch information
solufa committed Jun 18, 2024
1 parent 6799e0e commit d7effac
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ ARG CLIENT_PORT=5001

ENV PORT=5000
ENV CLIENT_PORT=$CLIENT_PORT
ENV DEFAULT_USER_POOL_ID=ap-northeast-1_default
ENV DEFAULT_USER_POOL_CLIENT_ID=default-client-id
ENV COGNITO_USER_POOL_ID=ap-northeast-1_default
ENV COGNITO_USER_POOL_CLIENT_ID=default-client-id
ENV DATABASE_URL=file:../../data/app.db
ENV SMTP_HOST=inbucket
ENV SMTP_PORT=2500
Expand Down
4 changes: 2 additions & 2 deletions server/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ SMTP_PORT=2500
SMTP_USER=fake_mail_user
SMTP_PASS=fake_mail_password
INBUCKET_URL=http://localhost:9000
DEFAULT_USER_POOL_ID=ap-northeast-1_default
DEFAULT_USER_POOL_CLIENT_ID=default-client-id
COGNITO_USER_POOL_ID=ap-northeast-1_default
COGNITO_USER_POOL_CLIENT_ID=default-client-id
4 changes: 2 additions & 2 deletions server/service/envValues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ const SMTP_HOST = z.string().parse(process.env.SMTP_HOST);
const SMTP_PASS = z.string().parse(process.env.SMTP_PASS);
const SMTP_PORT = +z.string().regex(/^\d+$/).parse(process.env.SMTP_PORT);
const SMTP_USER = z.string().parse(process.env.SMTP_USER);
const DEFAULT_USER_POOL_ID = brandedId.userPool.entity.parse(process.env.DEFAULT_USER_POOL_ID);
const DEFAULT_USER_POOL_ID = brandedId.userPool.entity.parse(process.env.COGNITO_USER_POOL_ID);
const DEFAULT_USER_POOL_CLIENT_ID = brandedId.userPoolClient.entity.parse(
process.env.DEFAULT_USER_POOL_CLIENT_ID,
process.env.COGNITO_USER_POOL_CLIENT_ID,
);

export {
Expand Down

0 comments on commit d7effac

Please sign in to comment.