Skip to content

Commit

Permalink
Merge pull request #40 from sanity-io/facelift
Browse files Browse the repository at this point in the history
log em out
  • Loading branch information
SimeonGriggs authored Jan 18, 2024
2 parents fee4129 + 4b5276f commit 46f5b74
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion studio/sanity.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,20 @@ import {dashboardTool} from '@sanity/dashboard'
const enableUrl = process.env.SANITY_STUDIO_VERCEL_ENV
? `https://${
process.env.SANITY_STUDIO_VERCEL_ENV === 'production'
? process.env.SANITY_STUDIO_VERCEL_URL
? 'demo-course-platform.sanity.build' // I don't understand why the primary domain doesn't have a variable
: process.env.SANITY_STUDIO_VERCEL_BRANCH_URL?.replace(
'demo-course-platform-studio',
'demo-course-platform'
)
}/api/draft`
: 'http://localhost:3000/api/draft'

console.log({
enableUrl,
env: process.env.SANITY_STUDIO_VERCEL_ENV,
branchUrl: process.env.SANITY_STUDIO_VERCEL_BRANCH_URL,
})

export default defineConfig({
name: 'default',
title: 'Course Platform',
Expand Down

2 comments on commit 46f5b74

@vercel
Copy link

@vercel vercel bot commented on 46f5b74 Jan 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

demo-course-platform – ./web

demo-course-platform.sanity.build
demo-course-platform-git-main.sanity.build

@vercel
Copy link

@vercel vercel bot commented on 46f5b74 Jan 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

demo-course-platform-studio – ./studio

demo-course-platform-studio.sanity.build
demo-course-platform-studio-git-main.sanity.build

Please sign in to comment.