From your terminal:
npm run dev
This starts your app in development mode, rebuilding assets on file changes.
First, build your app for production:
npm run build
Then run the app in production mode:
npm start
Now you'll need to pick a host to deploy it to.
If you're familiar with deploying node applications, the built-in Remix app server is production-ready.
Make sure to deploy the output of remix build
build/
public/build/
@apollo/client
raises error in runtime about module system.
I have solved the problem by following the below articles.
But this is odd becase the @apollo/client
provides both of ESM and CJS modules.
The endpoint https://flyby-gateway.herokuapp.com/
returns 503 for a CORS preflight request.
This is not a correct behavior for the CORS preflight request.
The server must be broken in this point of view.