-
Notifications
You must be signed in to change notification settings - Fork 3.7k
perf(db): per-role Postgres connection-pool profiles #5232
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
Changes from all commits
590bfcb
c458c1d
4b05050
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -13,6 +13,7 @@ const EnvSchema = z.object({ | |||||
| NEXT_PUBLIC_APP_URL: z.string().url(), | ||||||
| ALLOWED_ORIGINS: z.string().optional(), | ||||||
| PORT: z.coerce.number().int().positive().default(3002), | ||||||
| SIM_DB_ROLE: z.enum(['web', 'trigger', 'realtime']).optional(), | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When realtime starts with
Suggested change
|
||||||
| DISABLE_AUTH: z | ||||||
| .string() | ||||||
| .optional() | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When
SIM_DB_ROLEis set to a typo or future role, realtime rejects the whole environment during startup before@sim/dbcan use its unknown-role fallback toweb. The same value would be recoverable inpackages/db/db.ts, but this schema turns it into a crash loop withInvalid realtime server environment.