Skip to content

Commit 70b51be

Browse files
committed
Do not use cloudflare wrangler.
1 parent 44a566e commit 70b51be

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

vite.config.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { tanstackStart } from '@tanstack/react-start/plugin/vite'
44
import viteReact from '@vitejs/plugin-react'
55
import viteTsConfigPaths from 'vite-tsconfig-paths'
66
import tailwindcss from '@tailwindcss/vite'
7-
import { cloudflare } from '@cloudflare/vite-plugin'
7+
// import { cloudflare } from '@cloudflare/vite-plugin'
88
import mdx from 'fumadocs-mdx/vite'
99
import * as MdxConfig from './source.config'
1010
import { checksumPlugin } from './src/plugins/checksum'
@@ -14,13 +14,15 @@ const config = defineConfig({
1414
checksumPlugin(),
1515
mdx(MdxConfig),
1616
devtools(),
17-
cloudflare({ viteEnvironment: { name: 'ssr' } }),
17+
// cloudflare({ viteEnvironment: { name: 'ssr' } }),
1818
// this is the plugin that enables path aliases
1919
viteTsConfigPaths({
2020
projects: ['./tsconfig.json'],
2121
}),
2222
tailwindcss(),
23-
tanstackStart(),
23+
tanstackStart({
24+
preset: 'node-server',
25+
}),
2426
viteReact(),
2527
],
2628
})

0 commit comments

Comments
 (0)