Skip to content

Allow setting baseURL at runtime #4381

Description

@jvllmr

Describe the feature

I am currently deploying a new TanStack Start app with node server in containers.
We like to use custom basepaths for production and staging systems and I'm used to setting a new basepath at runtime from other projects, but nitro sets the basepath in the index.mjs file at build time.

It would be great if even after build the basepath can be modified via an env var.

Additional information

  • Would you be willing to help implement this feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions