Hooks
Deploy the Grafbase Gateway together with the hooks extension, as per the Gateway hooks guide.
[extensions.my-hooks] # my-hooks is the name of your hooks project
path = "path/to/build"
networking = false
stdout = false
stderr = false
environment_variables = false
max_pool_size = 1000
config = {}locationspecifies the path to the WASM file that contains custom hooks. You must provide a valid path and have read access to the file.networkingenables network access with TCP and UDP sockets, name resolution and WASI HTTP bindings to the guest. TCP and UDP sockets work only if the guest language supports WASI preview 2 standard. Default value is false.stdoutenables the guest to write to the standard output stream. Default value isfalse.stderrenables the guest to write to the standard error stream. Default value isfalse.environment_variablescopies host environment variables to the guest. Default value isfalse.max_pool_sizespecifies the number of hook instances that can run concurrently. Default value is four times the number of CPU cores.configallows custom configuration for the extension. You must handle parsing and validation of the configuration in the extension initialization.