mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
use correct cms site origin (#38859)
This commit is contained in:
1 parent
5098786f08
commit
da16e670a0
3 files changed
+3
-3
No files matched your search
@@ -10,7 +10,7 @@ import prettier from 'prettier'
|
||||
// Constants for CMS integration
|
||||
const CMS_SITE_ORIGIN =
|
||||
process.env.NEXT_PUBLIC_VERCEL_ENV === 'production'
|
||||
? 'https://supabase.com'
|
||||
? 'https://cms.supabase.com'
|
||||
: process.env.NEXT_PUBLIC_VERCEL_BRANCH_URL &&
|
||||
typeof process.env.NEXT_PUBLIC_VERCEL_BRANCH_URL === 'string'
|
||||
? `https://${process.env.NEXT_PUBLIC_VERCEL_BRANCH_URL?.replace('zone-www-dot-com-git-', 'cms-git-')}`
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const CMS_SITE_ORIGIN =
|
||||
process.env.NEXT_PUBLIC_VERCEL_ENV === 'production'
|
||||
? 'https://supabase.com'
|
||||
? 'https://cms.supabase.com'
|
||||
: process.env.NEXT_PUBLIC_VERCEL_BRANCH_URL &&
|
||||
typeof process.env.NEXT_PUBLIC_VERCEL_BRANCH_URL === 'string'
|
||||
? `https://${process.env.NEXT_PUBLIC_VERCEL_BRANCH_URL?.replace('zone-www-dot-com-git-', 'cms-git-')}`
|
||||
|
||||
@@ -8,7 +8,7 @@ import matter from 'gray-matter'
|
||||
const FILENAME_SUBSTRING = 11 // based on YYYY-MM-DD format
|
||||
const CMS_SITE_ORIGIN =
|
||||
process.env.NEXT_PUBLIC_VERCEL_ENV === 'production'
|
||||
? 'https://supabase.com'
|
||||
? 'https://cms.supabase.com'
|
||||
: process.env.NEXT_PUBLIC_VERCEL_BRANCH_URL &&
|
||||
typeof process.env.NEXT_PUBLIC_VERCEL_BRANCH_URL === 'string'
|
||||
? `https://${process.env.NEXT_PUBLIC_VERCEL_BRANCH_URL?.replace('zone-www-dot-com-git-', 'cms-git-')}`
|
||||
|
||||
Reference in new issue
Block a user