-
-
Notifications
You must be signed in to change notification settings - Fork 282
refactor: get rid of pg queue app name env var #959
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
base: master
Are you sure you want to change the base?
Changes from 1 commit
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 | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -102,7 +102,6 @@ type StorageConfigType = { | |||||||||||||||||||||||||||||||||||||||||
| databaseEnableQueryCancellation: boolean | ||||||||||||||||||||||||||||||||||||||||||
| databaseStatementTimeout: number | ||||||||||||||||||||||||||||||||||||||||||
| databaseApplicationName: string | ||||||||||||||||||||||||||||||||||||||||||
| pgQueueApplicationName: string | ||||||||||||||||||||||||||||||||||||||||||
| region: string | ||||||||||||||||||||||||||||||||||||||||||
| requestTraceHeader?: string | ||||||||||||||||||||||||||||||||||||||||||
| requestEtagHeaders: string[] | ||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -442,10 +441,6 @@ export function getConfig(options?: { reload?: boolean }): StorageConfigType { | |||||||||||||||||||||||||||||||||||||||||
| databaseApplicationName: | ||||||||||||||||||||||||||||||||||||||||||
| getOptionalConfigFromEnv('DATABASE_APPLICATION_NAME') || | ||||||||||||||||||||||||||||||||||||||||||
| `Supabase Storage API ${getOptionalConfigFromEnv('VERSION') || '0.0.0'}`, | ||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
441
to
443
|
||||||||||||||||||||||||||||||||||||||||||
| databaseApplicationName: | |
| getOptionalConfigFromEnv('DATABASE_APPLICATION_NAME') || | |
| `Supabase Storage API ${getOptionalConfigFromEnv('VERSION') || '0.0.0'}`, | |
| databaseApplicationName: (() => { | |
| const databaseApplicationName = getOptionalConfigFromEnv('DATABASE_APPLICATION_NAME') | |
| if (databaseApplicationName) { | |
| return databaseApplicationName | |
| } | |
| const legacyQueueApplicationName = getOptionalConfigFromEnv('PG_QUEUE_APPLICATION_NAME') | |
| if (legacyQueueApplicationName) { | |
| console.warn( | |
| 'PG_QUEUE_APPLICATION_NAME is deprecated; please migrate to DATABASE_APPLICATION_NAME. ' + | |
| 'Support for PG_QUEUE_APPLICATION_NAME may be removed in a future release.' | |
| ) | |
| return legacyQueueApplicationName | |
| } | |
| return `Supabase Storage API ${getOptionalConfigFromEnv('VERSION') || '0.0.0'}` | |
| })(), |
Uh oh!
There was an error while loading. Please reload this page.