File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,15 @@ const iframes: [IframeOptions['url'], string][] = [
20
20
'remix' ,
21
21
] . map ( ( title ) => [
22
22
( document , { perspectiveStack, selectedPerspectiveName} ) => {
23
- const url = new URL ( `https://preview-kit-${ title } .sanity.dev` )
23
+ const url = new URL (
24
+ title === 'remix'
25
+ ? process . env . SANITY_STUDIO_REMIX_URL || 'http://localhost:3000'
26
+ : title === 'next-pages-router'
27
+ ? process . env . SANITY_STUDIO_PAGES_ROUTER_URL || 'http://localhost:3003'
28
+ : title === 'next-app-router'
29
+ ? process . env . SANITY_STUDIO_APP_ROUTER_URL || 'http://localhost:3002'
30
+ : 'https://example.com' ,
31
+ )
24
32
if ( perspectiveStack . length > 0 ) {
25
33
url . searchParams . set ( 'sanity-preview-perspective' , perspectiveStack . join ( ',' ) )
26
34
} else if ( typeof selectedPerspectiveName === 'string' ) {
You can’t perform that action at this time.
0 commit comments