Skip to main content

Type Alias: LiveReloadOptions

LiveReloadOptions = object

Defined in: cli/debug-server.ts:40

Options for live reload behavior.

Properties

PropertyTypeDescriptionDefined in
afterBuild?() => Promise<void>An optional function that is called after a build is triggered.cli/debug-server.ts:79
beforeBuild?() => Promise<void>An optional function that is called before a build is triggered. This hook can be used to run additional build steps, for example, triggering a tailwindcss rebuild to generate updated CSS before the main application rebuild happens.cli/debug-server.ts:75
orgId?stringThe organization id to use for the debug server. This allows you to locally simulate and debug a specific organization's environment by running the server as if it were handling requests for that organization.cli/debug-server.ts:67
watchDir?stringFull path to watch for changes. When a file changes under this path the server will trigger a rebuild and reload of the client code.cli/debug-server.ts:45
watchFilter?(path) => booleanAn optional filter function that decides what changes under the watchDir will trigger a reload. The default implementation ignores the following paths: - All paths starting with '.' - All files ending with '.tmp' - .git/* - node_modules/* - server-data/* - build/*cli/debug-server.ts:61