Skip to content
Discussion options

You must be logged in to vote

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.

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({

Replies: 1 comment

Comment options

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