chore: fix docs build

This commit is contained in:
mathuo 2024-04-27 13:48:11 +01:00
parent f6e816fa10
commit db9703a150
No known key found for this signature in database
GPG Key ID: C6EEDEFD6CA07281
2 changed files with 5 additions and 3 deletions

View File

@ -14,7 +14,7 @@ const { version } = JSON.parse(
const REACT_VERSION = '18.2.0'; const REACT_VERSION = '18.2.0';
const VUE_VERSION = '3.4.21'; const VUE_VERSION = '3.4.21';
const DOCKVIEW_VERSION = version; const DOCKVIEW_VERSION = 'latest'; // version;
const USE_LOCAL_CDN = argv.slice(2).includes('--local'); const USE_LOCAL_CDN = argv.slice(2).includes('--local');
const local = 'http://localhost:1111'; const local = 'http://localhost:1111';

View File

@ -8,8 +8,10 @@ const BASE_SANDBOX_URL =
export const _CodeRunner = (props: { id: string; height: number }) => { export const _CodeRunner = (props: { id: string; height: number }) => {
const [framework] = useActiveFramework(); const [framework] = useActiveFramework();
const sandboxUrl = `${BASE_SANDBOX_URL}/templates/${props.id}/${framework}`; const sandboxUrl = `${BASE_SANDBOX_URL}/templates/${
const path = `/templates/${props.id}/${framework}/index.html`; props.id
}/${framework.toLowerCase()}`;
const path = `/templates/${props.id}/${framework.toLowerCase()}/index.html`;
return ( return (
<div> <div>
<iframe <iframe