mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
Remove unused old env var (#41178)
* Remove unused old env var * Update apps/studio/lib/api/apiHelpers.ts Co-authored-by: Alaister Young <alaister@users.noreply.github.com> * Fix * Add comment --------- Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
This commit is contained in:
1 parent
6b2d789284
commit
91209faab1
3 files changed
+3
-7
No files matched your search
@@ -15,7 +15,6 @@ vi.mock('lib/constants', () => ({
|
||||
describe('apiHelpers', () => {
|
||||
describe('constructHeaders', () => {
|
||||
beforeEach(() => {
|
||||
process.env.READ_ONLY_API_KEY = 'test-readonly-key'
|
||||
process.env.SUPABASE_SERVICE_KEY = 'test-service-key'
|
||||
})
|
||||
|
||||
|
||||
@@ -25,9 +25,9 @@ export function constructHeaders(headers: { [prop: string]: any }) {
|
||||
)
|
||||
return {
|
||||
...cleansedHeaders,
|
||||
...(IS_PLATFORM
|
||||
? { apiKey: `${process.env.READ_ONLY_API_KEY}` }
|
||||
: { apiKey: `${process.env.SUPABASE_SERVICE_KEY}` }),
|
||||
// [Joshen] JFYI both Alaister and I checked on this and realised this might not be used actually
|
||||
// Could be safe to remove but leaving it here for now
|
||||
...(!IS_PLATFORM && { apiKey: `${process.env.SUPABASE_SERVICE_KEY}` }),
|
||||
}
|
||||
} else {
|
||||
return {
|
||||
|
||||
Reference in new issue
Block a user