question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using Excalidraw embed without serving the assets from root

See original GitHub issue

Hey there,

I’m using the new @excalidraw/excalidraw package currently and am having trouble integrating it as I can’t serve the assets straight from my lib and it seems this is currently mandatory.

A possible solution I could see would be to be able to specify an address and serve them from my cdn _for instance, my app runs at slite.com/app, I call the assets at slite.com/cdn/excalidraw-assets _

Cheers & keep up the good work!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
ad1992commented, Jan 17, 2021

Most of the open-source libraries like react, react-router, semantic-ui, etc use cloudflare, though react mentions unpkg in the docs but its in Cloudflare as well and pretty much every library you will find in Cloudflare CDN. We should allow the consumers to directly load from CDN as well so they can load it via a script that directly. And also we should expose dev builds as well so it can help in debugging. What do you think @dwelle?

1reaction
ad1992commented, Jan 7, 2021

@christophepas the main reason being since it’s an open-source CDN so we can’t assure about its uptime so users would want to host it from their own CDN rather than depending on an open-source cdn.
I didn’t get time to dig deeper to find a better solution. I will look more into it this weekend.

Read more comments on GitHub >

github_iconTop Results From Across the Web

تويتر \ Excalidraw على تويتر: "We've published 0.2.0 of our NPM ...
Start using @excalidraw/excalidraw in your project by running `npm i ... Using Excalidraw embed without serving the assets from root · Issue #2605 ......
Read more >
@excalidraw/excalidraw - npm
With create-react-app, the assets can be served from public/static/js/excalidraw-assets since CRA tries to load the assets from {rootUrl}/static ...
Read more >
Antoine-excalidraw NPM
Excalidraw exported as a component to directly embed in your projects ... Move the folder excalidraw-assets to the path where your assets are...
Read more >
Part 6: Intro to Obsidian-Excalidraw: Embedding drawings
You can install the plugin from Community Plugins in Obsidian, or download it from GitHub here: ...
Read more >
TechDocs How-To guides - Backstage.io
Note, just as it's possible to specify a subdirectory with the dir: prefix, you can also provide a path to a non-root directory...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found