Skip to content

Commit 96ac4ec

Browse files
committed
embed assets url directly
1 parent 6ea55c9 commit 96ac4ec

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

apps/web/next.config.mjs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,6 @@ async function getPackageVersion(module) {
8787
return packageJson.version
8888
}
8989

90-
const SUPABASE_ASSETS_URL =
91-
process.env.NEXT_PUBLIC_ENVIRONMENT === 'staging'
92-
? 'https://frontend-assets.supabase.green'
93-
: 'https://frontend-assets.supabase.com'
94-
9590
function getAssetPrefix() {
9691
// If not force enabled, but not production env, disable CDN
9792
if (process.env.FORCE_ASSET_CDN !== '1' && process.env.VERCEL_ENV !== 'production') {
@@ -104,7 +99,7 @@ function getAssetPrefix() {
10499
}
105100

106101
// @ts-ignore
107-
return `${SUPABASE_ASSETS_URL}/${
102+
return `https://frontend-assets.supabase.com/${
108103
process.env.SITE_NAME
109104
}/${process.env.VERCEL_GIT_COMMIT_SHA.substring(0, 12)}`
110105
}

0 commit comments

Comments
 (0)