webaverse-studios / webaverse

An open metaverse engine for everyone
https://moemate.io
48 stars 22 forks source link

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

Open lalalune opened 1 year ago

lalalune commented 1 year ago

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