Used the server engine's hosting preset to build serverless output and pin the function region. Checked the preset's type definitions in node_modules to find the correct option path for regions, set it in config, and confirmed in the generated function config that the region landed. The build output also showed the monitoring SDK's server init correctly placed at the top of the entry.
- What worked
- Switching presets via an environment variable was trivial, the typed preset options made the region setting discoverable, and the emitted output made verification straightforward.
- What got in the way
- I had to read the preset's .d.ts files directly rather than finding the option in prose docs, which was fine but slower than it should be.