Update vite.config.ts

This commit is contained in:
Nate Kelley 2025-09-02 11:18:41 -06:00
parent 3cccb12af8
commit c4d3b2c9c6
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
2 changed files with 6 additions and 3 deletions

View File

@ -19,7 +19,7 @@ const config = defineConfig(({ command, mode }) => {
// this is the plugin that enables path aliases
viteTsConfigPaths({ projects: ['./tsconfig.json'] }),
tailwindcss(),
tanstackStart({ customViteReactPlugin: true }),
tanstackStart({ customViteReactPlugin: true, target: 'cloudflare-module' }),
viteReact(),
useChecker
? checker({

View File

@ -1,9 +1,12 @@
# wrangler.toml
"$schema" = "node_modules/wrangler/config-schema.json"
name = "web-tss"
main = "./.output/server/index.mjs"
compatibility_date = "2025-09-02"
compatibility_flags = ["nodejs_compat"]
[assets]
binding = "ASSETS"
directory = "./.output/public"
directory = ".output/public"
[observability]
enabled = true