@implementjs/adapter-iis
v0.0.7
Published
Builds an implement kit app for IIS on Windows Server.
Maintainers
Readme
@implementjs/adapter-iis
Builds an implement kit app for IIS on Windows Server.
npm install -D @implementjs/adapter-iis// vite.config.ts
import adapter from "@implementjs/adapter-iis";
import { kit } from "@implementjs/kit";
import { defineConfig } from "vite";
export default defineConfig({
plugins: [kit({ adapter: adapter({ origin: "https://intranet.example.com" }) })],
});vite build writes dist/: the app as a Node server, the client bundle beside it, and the
web.config that tells IIS to start the one and hand it every request. Copy the directory to the
server, point a site at it, and it runs.
IIS does not run JavaScript itself, so the server needs one of two modules installed:
- HttpPlatformHandler — Microsoft's own, still supported, and the default.
- iisnode with
URL Rewrite — what most existing
IIS-and-Node servers already have, and
adapter({ hosting: "iisnode" }).
Full documentation: implementjs.dev/kit/adapters
