Describe the bug
Right now we are running a dev server which will is fine but will not work on Vercel. We could definitely come up with a better solution, as @soulofmischief has suggested.
If we run the client directly with vite instead of running the dev-server.mjs, we have CORS errors with the compiler. To reproduce this issue, switch the "dev" command in the client package to call vite instead of node dev-server.mjs
Remove need for dev-server.mjs in client
Fix CORS handling between client and compiler so it just works, maybe adding a proxy to the client
Set up so client just works as a static build and publishes correctly to vercel.
Deliverable is the client and compiler published to vercel and working with each other correctly
Describe the bug Right now we are running a dev server which will is fine but will not work on Vercel. We could definitely come up with a better solution, as @soulofmischief has suggested.
If we run the client directly with
vite
instead of running the dev-server.mjs, we have CORS errors with the compiler. To reproduce this issue, switch the "dev" command in the client package to callvite
instead ofnode dev-server.mjs