npx create-remix@latest --template https://github.com/huijiewei/remix-vite-vercel-template
or
Change Build and Output Settings
override Output Directory
build/client
init deploy will be fail, because vercel default use nodejs 18.x, you can goto project settings to set node.js version to 20.x, then goto Deployments tab choose fail deploy and redeploy it.
Document: vercel-serverless-adapter
📖 See the Remix docs and the Remix Vite docs for details on supported features.
Run the Vite dev server:
npm run dev
First, build your app for production:
npm run build
Then run the app in production mode at local:
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 npm run build
build/server
build/client