-
Beta Was this translation helpful? Give feedback.
Answered by
lwhiteley
Jan 8, 2026
Replies: 1 comment
-
|
after a lot of reading and wasnt obvious at all.. but I ended up with the realization that tanstack is using nitro so i ended up adjusting the nitro config too. import { defineConfig } from 'vite'
import { devtools } from '@tanstack/devtools-vite'
import { tanstackStart } from '@tanstack/react-start/plugin/vite'
import viteReact from '@vitejs/plugin-react'
import viteTsConfigPaths from 'vite-tsconfig-paths'
import tailwindcss from '@tailwindcss/vite'
import { nitro } from 'nitro/vite'
import svgr from 'vite-plugin-svgr'
const config = defineConfig(() => ({
base: '/app/',
build: {
assetsDir: 'app/assets',
},
plugins: [
devtools(),
nitro({
baseURL: '/app/',
}),
// this is the plugin that enables path aliases
viteTsConfigPaths({
projects: ['./tsconfig.json'],
}),
tailwindcss(),
tanstackStart({
router: {
basepath: '/app/',
},
}),
viteReact({
babel: {
plugins: ['babel-plugin-react-compiler'],
},
}),
svgr(),
],
}))
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lwhiteley
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

after a lot of reading and wasnt obvious at all..
but I ended up with the realization that tanstack is using nitro
and nitro exposes a baseUrl
so i ended up adjusting the nitro config too.