T
TanStack4mo ago
apparent-cyan

how do you build tanstack start for aws-lambda?

With vinxi, there was a preset: 'aws-lambda' property, but now that im using vite im not sure how to configure this.
3 Replies
apparent-cyan
apparent-cyanOP4mo ago
ah, like this:
tanstackStart({
customViteReactPlugin: true,
target: "aws-lambda",
}),
tanstackStart({
customViteReactPlugin: true,
target: "aws-lambda",
}),
stormy-gold
stormy-gold4mo ago
I did this but the lambda wraps the response within a JSON, did you get the same issue?
xenial-black
xenial-black4mo ago
Make sure to have streaming: false, otherwise the responses are really slow

Did you find this page helpful?