Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core): database connection timeout env overwrite support (#6187) #6674

Merged
merged 2 commits into from
Oct 18, 2024

Conversation

luis815
Copy link
Contributor

@luis815 luis815 commented Oct 14, 2024

Summary

Adding environmental variable to overwrite default database connection timeout, as the default value is causing some instances fail to start.

Default value for createPool is documented here

Testing

Locally by verifying value is passed to @silverhand/slonik createPool and application starts

Checklist

  • .changeset
  • unit tests
  • integration tests
  • necessary TSDoc comments

Copy link

github-actions bot commented Oct 14, 2024

COMPARE TO master

Total Size Diff 📈 +616 Bytes

Diff by File
Name Diff
.changeset/fifty-apes-arrive.md 📈 +369 Bytes
packages/core/src/env-set/create-pool.ts 📈 +53 Bytes
packages/core/src/env-set/index.ts 📈 +92 Bytes
packages/shared/src/node/env/GlobalValues.ts 📈 +102 Bytes

Copy link
Member

@charIeszhao charIeszhao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@charIeszhao
Copy link
Member

I think we need to add a changeset. I will take care of it and we'll merge the PR right after that.

Thanks again for your contribution.

@charIeszhao charIeszhao changed the title feat(core): database connection timeout env overwite support (#6187) feat(core): database connection timeout env overwrite support (#6187) Oct 16, 2024
@charIeszhao charIeszhao merged commit bc2a0ac into logto-io:master Oct 18, 2024
36 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

5 participants