TanStackT
TanStack17mo ago
22 replies
foolish-indigo

Path aliases with tanstack start? (SOLVED)

Hello! im trying to prerender my app using tanstack start, i added the config found in the example:
import { defineConfig } from '@tanstack/start/config'

export default defineConfig({
  deployment: {
    prerender: {
      routes: ['/'],
      crawlLinks: true,
    },
  },
})

But ran into a problem with path aliases. I found this guide that says we can add a plugin to all routers in vinxi to get the same path aliases from tsconfig: https://vinxi.vercel.app/guide/aliases.html but i believe its not possible to use this with tanstack start at the moment? is there an easier way to prerender my app built with tanstack router? i looked into solutions like react-snap but seem unmaintained
Vinxi Documentation
Was this page helpful?