Closed pi0 closed 1 week ago
This PR adds preset-specific config into .output/nitro.json to be usable for external tools consuming nitro build output.
.output/nitro.json
Original use case: SST needs awsLambda.streaming flag to adjust it's behavior.
awsLambda.streaming
Example:
import { defineNitroConfig } from "nitropack/config"; export default defineNitroConfig({ compatibilityDate: "2024-09-19", awsLambda: { streaming: true, }, });
{ "date": "2024-10-21T02:49:49.524Z", "preset": "aws-lambda", "framework": { "name": "nitro", "version": "" }, "versions": { "nitro": "2.9.6" }, "commands": {}, "config": { "awsLambda": { "streaming": true } } }
This PR adds preset-specific config into
.output/nitro.json
to be usable for external tools consuming nitro build output.Original use case: SST needs
awsLambda.streaming
flag to adjust it's behavior.Example: