Skip to content

huijiewei/remix-vite-vercel-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Remix + Vite + Vercel!

npx create-remix@latest --template https://github.com/huijiewei/remix-vite-vercel-template

or

Deploy with Vercel


Vercel Project Settings

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.

Development

Run the Vite dev server:

npm run dev

Deployment

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.

DIY

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