Vercel now supports deploying Remix applications using Vite.
import { vitePlugin as remix } from '@remix-run/dev' ;
import { installGlobals } from '@remix-run/node' ;
import { defineConfig } from 'vite' ;
import tsconfigPaths from 'vite-tsconfig-paths' ;
import { vercelPreset } from '@vercel/remix/vite' ;
installGlobals ( ) ;
export default defineConfig ( {
plugins : [
remix ( {
presets : [ vercelPreset ( ) ] ,
} ) ,
tsconfigPaths ( ) ,
] ,
} ) ;
Configuring your Remix application with the Vercel Vite preset.
We've collaborated with the Remix team to add Server Bundles to Remix.…