tldraw-v1 works perfectly fine, but tldraw-v2 does not find the required assets:
So the question is:
How can I make a file that layes in the same folder as the notebook, e.g. the file fonts/IBMPlexSerif-Medium.woff2 available from the url http://localhost:8888/fonts/IBMPlexSerif-Medium.woff2 ?
Code to reproduce:
%%react
import * as React from "react";
import { Tldraw } from "@tldraw/tldraw@alpha";
export default function App() {
return (
<div
style={{
position: "relative",
width: "300px",
height: "250px",
}}
>
<Tldraw />
</div>
);
}
tldraw-v1 works perfectly fine, but tldraw-v2 does not find the required assets:
So the question is: How can I make a file that layes in the same folder as the notebook, e.g. the file
fonts/IBMPlexSerif-Medium.woff2
available from the urlhttp://localhost:8888/fonts/IBMPlexSerif-Medium.woff2
?Code to reproduce: