webaverse icon indicating copy to clipboard operation
webaverse copied to clipboard

Remove dev server so client can be static built, replace with proxy

Open lalalune opened this issue 2 years ago • 0 comments

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

lalalune avatar Jan 19 '23 11:01 lalalune