elysiajs-remix
v0.0.3
Published
Remix integration for ElysiaJS.
Downloads
163
Readme
ElysiaJS Remix
Remix integration for ElysiaJS.
This plugin allows you to serve your Remix application through your Elysia server.
Installation
npm install elysiajs-remix
- Setup your Elysia server:
// src/index.ts
import { elysia } from "Elysia";
import { remix } from "elysiajs-remix";
const app = new Elysia().use(remix()).listen(5173);
- Configure vite config:
// vite.config.js
import { defineConfig } from "vite";
import { vitePlugin as remix } from "@remix-run/dev";
export default defineConfig({
plugins: [remix()],
});
Acknowledgments
This project uses code from the following sources:
- Vike Node -
connectToWeb
utility for converting connect middleware to wintercg compaitable response/request objects.