Expand description
Utilities for working with the engine-side, particularly with regards to setting up the entrypoint for your app’s build/export/server processes.
Enums§
- Engine
Operation - A representation of the server-side engine operations that can be performed.
Functions§
- get_op
- Determines the engine operation to be performed by examining environment variables (set automatically by the CLI as appropriate).
- run_
dflt_ engine - A convenience function that automatically runs the necessary engine operation based on the given directive. This provides almost no options for customization, and is usually elided by a macro. More advanced use-cases should bypass this and call the functions this calls manually, with their own configurations.
- run_
dflt_ engine_ export_ only - A wrapper around
run_dflt_enginefor apps that only use exporting, and so don’t need to bring in a server integration. This is designed to avoid extra dependencies. Ifperseus serveis called on an app using this, it willpanic!after building everything.