Skip to content

Commit 3cf5c3a

Browse files
authored
fix: supabase assets url (supabase#36766)
1 parent 37e44be commit 3cf5c3a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apps/studio/next.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ function getAssetPrefix() {
1818
return undefined
1919
}
2020

21+
const SUPABASE_ASSETS_URL =
22+
process.env.NEXT_PUBLIC_ENVIRONMENT === 'staging'
23+
? 'https://frontend-assets.supabase.green'
24+
: 'https://frontend-assets.supabase.com'
25+
2126
return `${SUPABASE_ASSETS_URL}/${process.env.SITE_NAME}/${process.env.VERCEL_GIT_COMMIT_SHA.substring(0, 12)}`
2227
}
2328

0 commit comments

Comments
 (0)