Open
Description
Which project does this relate to?
Start
Describe the bug
Firstly, amazing work with the migration away from vinxi that dropped in 1.120. Unexpected, but awesome nonetheless.
On the old setup, I previously was able to configure nitro, e.g.:
// app.config.ts
server: {
preset: 'aws-lambda',
awsLambda: {
streaming: true
}
}
Now, I am only able to set target
i.e. nitro's preset
field, but not pass any additional nitro config.
Suggested fix
// vite.config.ts
tanstackStart({
nitro: {
preset: 'aws-lambda',
awsLambda: {
streaming: true
}
}
})
nitro
would be spread on top of https://github.com/TanStack/router/blob/main/packages/start-plugin-core/src/nitro-plugin/plugin.ts#L73-L103- optionally, nitro could accept a merge function
If it's not already in the works, I am willing to submit a PR.
Your Example Website or App
Steps to Reproduce the Bug or Issue
- Open sandbox
- Try passing nitro config params to tanstackStart vite plugin
Expected behavior
I can continue to pass nitro config to the build server
Screenshots or Videos
No response
Platform
Any platform
Additional context
No response
Metadata
Metadata
Assignees
Labels
No labels