@implementjs/adapter-static
v0.0.20
Published
Builds an implement kit app into static files for any static host.
Maintainers
Readme
@implementjs/adapter-static
Builds an implement kit app into static files for any static host.
npm install -D @implementjs/adapter-static// vite.config.ts
import adapter from "@implementjs/adapter-static";
import { kit } from "@implementjs/kit";
import { defineConfig } from "vite";
export default defineConfig({
plugins: [kit({ adapter: adapter() })],
});Plain files, nothing running. On top of what a kit build does on its own it adds the options a static host tends to want, precompressed assets, and a check that fails the build on a route no file could answer.
For a single page app, turn the prerender off and give the client router a shell to boot from:
kit({ prerender: false, adapter: adapter({ fallback: "index.html" }) });Full documentation: implementjs.dev/kit/adapters
