T
TanStack2w ago
flat-fuchsia

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
flat-fuchsia
flat-fuchsiaOP2w ago
ah, like this:
tanstackStart({
customViteReactPlugin: true,
target: "aws-lambda",
}),
tanstackStart({
customViteReactPlugin: true,
target: "aws-lambda",
}),
adverse-sapphire
adverse-sapphire2w ago
I did this but the lambda wraps the response within a JSON, did you get the same issue?
ratty-blush
ratty-blush2w ago
Make sure to have streaming: false, otherwise the responses are really slow

Did you find this page helpful?