Licence
MIT
Version
0.0.3
Deps
0
Size
11 kB
Vulns
0
Weekly
0
@implementjs/adapter-node
Builds an implement kit app into a standalone Node server.
npm install -D @implementjs/adapter-node
// vite.config.ts
import adapter from "@implementjs/adapter-node";
import { kit } from "@implementjs/kit";
import { defineConfig } from "vite";
export default defineConfig({
plugins: [kit({ adapter: adapter() })],
});
vite build writes a server and its assets into dist/. Run it with node dist. It reads
PORT and HOST from the environment, under a prefix of your choosing if bare ones are
already spoken for.
Full documentation: implementjs.dev/kit/adapters