Server Functions
compile
compile(options: CompileOptions): Promise<void>
Compiles a GoatDB application into a standalone executable.
This function performs the following steps:
- Bundles client-side code (JS/TS/TSX) into a single JavaScript file
- Processes static assets (HTML, CSS, images, etc.)
- Generates build information
- Compiles the server entry point into a native executable for the target platform
startDebugServer
startDebugServer(options: DebugServerOptions<US>): Promise<never>
Starts a local debug server. The debug server implements a live reload that automatically transpiles TypeScript and JSX using ESBuild.
staticAssetsFromJS
staticAssetsFromJS(encodedAssets: ReadonlyJSONObject): StaticAssets