loadBuiltServer
Loads the built server entry: its handler, and the prerenderRoutes it exports (the route functions, loaded lazily).
Loads the built server entry: its handler, and the prerenderRoutes it exports (the route
functions, loaded lazily).
Import#
ts
import { loadBuiltServer } from "@shadow-js/dusk/vite";
Signature#
ts
async function loadBuiltServer(entryFile: string): Promise<BuiltServer>
Examples#
ts
const { handler, prerenderRoutes } = await loadBuiltServer("/app/dist/server/entry.js");