Skip to content
Discussion options

You must be logged in to vote

as of v1.58.7, we have the following:

TanStack Start now exposes the routeRules config option from nitro: https://nitro.unjs.io/guide/routing#route-rules

example:

import { defineConfig } from '@tanstack/start/config'

export default defineConfig({
  server: {
    routeRules: {
      "/proxy/example": { proxy: { to: "https://example.com"} },
    }
  },
})

Replies: 4 comments 20 replies

Comment options

You must be logged in to vote
18 replies
@luksch42
Comment options

@nahtnam
Comment options

@JeffersonCarvalh0
Comment options

@devrayat000
Comment options

@andrewdavid48
Comment options

Answer selected by andrewdavid48
Comment options

You must be logged in to vote
1 reply
@CanRau
Comment options

Comment options

You must be logged in to vote
1 reply
@luixo
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet