File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,6 @@ const darkCodeTheme = themes.dracula;
17
17
projectName : 'react-native-ui-lib' , // Usually your repo name.
18
18
trailingSlash : false ,
19
19
customFields : {
20
- livePreviewSource :
21
- process . env . NODE_ENV === 'development'
22
- ? 'http://localhost:3000/react-native-ui-lib/livePreview'
23
- : 'https://wix.github.io/react-native-ui-lib/livePreview' ,
24
20
docsMainEntry : 'getting-started/setup' ,
25
21
expoSnackLink : 'https://snack.expo.io/@ethanshar/rnuilib_snack' ,
26
22
stars : '4.7'
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export default function UILivePreview({code: codeProp}) {
12
12
const [ iframeLoaded , setIframeLoaded ] = useState ( false ) ;
13
13
const { siteConfig} = useDocusaurusContext ( ) ;
14
14
const iframeRef = useRef ( null ) ;
15
- const iframeSource = siteConfig ?. customFields ?. livePreviewSource as string ;
15
+ const iframeSource = ` ${ window . location . origin } ${ siteConfig ?. baseUrl } livePreview` ;
16
16
17
17
useEffect ( ( ) => {
18
18
if ( iframeLoaded ) {
You can’t perform that action at this time.
0 commit comments