cliffordfajardo / remix-caching-strategies

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

templates/unstable-vite-express

⚠️ 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@latest --template remix-run/remix/templates/unstable-vite-express

Run

Spin up the Express server as a dev server:

npm run dev

Or build your app for production and run it:

npm run build
npm run start

Customize

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.

About


Languages

Language:TypeScript 73.1%Language:JavaScript 26.9%