Need Help with Excalidraw Room Setup

0
3
Asked By CreativeNinja42 On

I'm working on setting up Excalidraw using the Excalidraw room, and it's mostly functional. However, when I attempt to initiate a Live Session, nothing happens. I've included my compose file for reference but I'm stuck on what might be going wrong. I consulted GPT but it mentioned that the frontend might be broken, suggesting I build it from scratch, which seems off to me. Can someone help me troubleshoot this?

2 Answers

Answered By TechieWizard99 On

It looks like you're having issues with the environment variables not being recognized in the Excalidraw container. There's a known issue where `REACT_APP_WS_SERVER_URL` and `VITE_APP_WS_SERVER_URL` aren't applied correctly, leading the frontend to try to connect to the default Excalidraw server instead of your local setup. To fix this, you might need to build the container yourself with a custom `.env.production` file or adjust your setup to ensure it uses the right WebSocket URL.

Answered By CodeCrafter88 On

You can actually resolve this by setting a custom entrypoint for the Excalidraw container. Basically, you would modify the `command` to replace the default WebSocket URL in the JS assets with your custom one from the environment variable. After that, your collaboration feature should work just fine. It's a bit of a workaround, but it should do the trick!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.