TanStackT
TanStack13mo ago
5 replies
wispy-olive

Vercel target in Nx monorepo results in 404

I have following config:
import { builtinModules } from 'module'
import { defineConfig } from '@tanstack/start/config'
import tsConfigPaths from 'vite-tsconfig-paths'

export default defineConfig({
  vite: {
    plugins: [tsConfigPaths({})],
    ssr: {
      noExternal: ['react-dropzone'],
    },
    build: {
      rollupOptions: {
        external: [...builtinModules, /^node:/],
      },
    },
  },

  server: {
    preset: 'vercel',
    esbuild: {
      options: {
        target: 'esnext',
      },
    },
  },
})


And this settings in Vercel (see screenshot), it successfully builds, but then I see only 404 (see screenshot 2).
image.png
image.png
Was this page helpful?