Skip to content

Start: Custom Nitro config, post vinxi→vite migration #4404

Open
@djgrant

Description

@djgrant

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
    }
  }
})

If it's not already in the works, I am willing to submit a PR.

Your Example Website or App

https://codesandbox.io/p/devbox/github/tanstack/router/tree/main/examples/react/start-basic?embed=1&file=%2Fvite.config.ts&theme=dark

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions