Skip to content

pcattori/remix-template-vite

Repository files navigation

remix-template-vite

⚠️ Remix support for Vite is unstable and not recommended for production.

📖 See the Remix Vite docs for details on supported features.

Setup

npx create-remix@nightly --template pcattori/remix-template-vite

Minimal server

Spin up a minimal Vite dev server:

npm run dev

Or build your app for production and run it:

npm run build
npm run start

Extensible server

Remix exposes APIs for integrating Vite with a custom server:

import {
  unstable_createViteServer,
  unstable_loadViteServerBuild,
} from "@remix-run/dev";

In this template, we'll use Express but remember that these APIs can be used with any Node-compatible server setup that supports standard middleware.


Spin up the Express server as a dev server:

npm run dev:express

Or build your app for production and run it:

npm run build
npm run start:express

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •