[]previous and next page

serverEntrySource

The server entry: imports the route tree, the app and the user's handler options, registers the API routes lazily and the server functions (lazily in the dev server, from static imports in a build), and exports handler (also as default).

The server entry: imports the route tree, the app and the user's handler options, registers the API routes lazily and the server functions (lazily in the dev server, from static imports in a build), and exports handler (also as default).

Import#

ts
import { serverEntrySource } from "@shadow-js/dusk/vite";

Signature#

ts
function serverEntrySource(input: ServerEntryInput): string

Parameters#

Name Description
input See ServerEntryInput.

Returns#

Module text.

Examples#

ts
serverEntrySource({ dev: false, base: "", generatedTree, appFile, entryServerFile, apiRoutes, serverFns, assets });