I use Tanstack Start, better-auth, MongoDB and hosting in Cloudflare Workers, In my domain is with the error: "Looks like there's a problem with this site https://www.lopesesantos.com/ sent back an error. Error code: 404 Not Found Check to make sure you've typed the website address correctly.", nothing appears in the console, the build always works, the domain and environment variables are also configured, the DNS too, I don't know what else to do to get my tanstack start app working on cloudflare workers, can anyone help me please? See my wranger.jsonc: "{ "$schema": "node_modules/wrangler/config-schema.json", "name": "lopesesantos", "compatibility_date": "2026-02-28", "compatibility_flags": ["nodejs_compat"], "main": "@tanstack/react-start/server-entry", "observability": { "enabled": true, }, "routes": [ { "pattern": "lopesesantos.com", "custom_domain": true, }, { "pattern": "www.lopesesantos.com", "custom_domain": true, }, ], }" and vite.config.ts (import { defineConfig, loadEnv } from "vite"; import { devtools } from "@tanstack/devtools-vite"; import { tanstackStart } from "@tanstack/react-start/plugin/vite"; import { sentryTanstackStart } from "@sentry/tanstackstart-react"; import viteReact from "@vitejs/plugin-react"; import viteTsConfigPaths from "vite-tsconfig-paths"; import { cloudflare } from "@cloudflare/vite-plugin"; import tailwindcss from "@tailwindcss/vite"; import { analyzer } from "vite-bundle-analyzer"; const config = defineConfig(({ mode }) => { const env = loadEnv(mode, process.cwd(), ""); process.env = { ...process.env, ...env }; return { plugins: [ cloudflare({ viteEnvironment: { name: "ssr" } }), devtools(), viteTsConfigPaths({ projects: ["./tsconfig.json"], }), tailwindcss(), tanstackStart(), sentryTanstackStart({ org: "nunca-esqueci", project: "lopes-e-santos", authToken: process.env.SENTRY_AUTH_TOKEN, }), viteReact({ babel: { plugins: ["babel-plugin-react-compiler"], }, }), analyzer(), ], ssr: { noExternal: [/^@tanstack\//], }, environments: { ssr: { build: { sourcemap: false, }, }, }, build: { sourcemap: false, minify: "esbuild", rollupOptions: { maxParallelFileOps: 2, cache: false, onLog(level, log, handler) { if (log.code === "CYCLIC_CROSS_CHUNK_REEXPORT") return; handler(level, log); }, }, chunkSizeWarningLimit: 2000, }, define: { global: "globalThis", "process.env.NODE_ENV": JSON.stringify("production"), }, }; }); export default config; ) and see my package.json: "{ "name": "oficial-website-lopesesantos", "private": true, "type": "module", "scripts": { "dev": "vite dev", "build": "vite build", "preview": "vite preview", "deploy": "npm run build && wrangler deploy", "cf-typegen": "wrangler types", "postbuild": "sed -i '/sourceMappingURL/d' dist/server/server.js || true", "test": "vitest run", "email:dev": "email dev", "format": "biome format", "lint": "biome lint", "check": "biome check" }, "pnpm": { "overrides": { "tr46": "5.1.0", "whatwg-url": "14.1.0", "punycode": "^2.3.1" }, "onlyBuiltDependencies": [ "@parcel/watcher", "@sentry/cli", "core-js", "esbuild", "sharp", "workerd" ] }, "dependencies": { "@base-ui/react": "^1.1.0", "@better-auth/passkey": "^1.4.18", "@calcom/embed-react": "^1.5.3", "@fontsource-variable/inter": "^5.2.8", "@lexical/code": "0.35.0", "@lexical/link": "0.35.0", "@lexical/list": "0.35.0", "@lexical/react": "0.35.0", "@lexical/rich-text": "0.35.0", "@number-flow/react": "^0.5.10", "@portabletext/react": "^6.0.2", "@radix-ui/react-accordion": "^1.2.12", "@radix-ui/react-dialog": "^1.1.15", "@radix-ui/react-label": "^2.1.8", "@radix-ui/react-select": "^2.2.6", "@radix-ui/react-separator": "^1.1.8", "@radix-ui/react-slot": "^1.2.4", "@radix-ui/react-tooltip": "^1.2.8", "@react-email/components": "1.0.6", "@react-email/render": "2.0.4", "@sanity/client": "^7.14.0", "@sanity/image-url": "^2.0.2", "@sentry/tanstackstart-react": "^10.22.0", "@statsig/react-bindings": "^3.31.2", "@statsig/session-replay": "^3.31.2", "@statsig/web-analytics": "^3.31.2", "@t3-oss/env-core": "^0.13.8", "@tabler/icons-react": "^3.36.0", "@tailwindcss/vite": "^4.0.6", "@tanstack/react-devtools": "^0.7.0", "@tanstack/react-form": "^1.27.7", "@tanstack/react-query": "^5.66.5", "@tanstack/react-query-devtools": "^5.84.2", "@tanstack/react-router": "^1.132.0", "@tanstack/react-router-devtools": "^1.132.0", "@tanstack/react-router-ssr-query": "^1.131.7", "@tanstack/react-start": "^1.159.7", "@unpic/react": "^1.0.2", "better-auth": "^1.4.12", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "cmdk": "^1.1.1", "docx": "^9.5.1", "embla-carousel-autoplay": "^8.6.0", "embla-carousel-react": "^8.6.0", "framer-motion": "^12.23.26", "jspdf": "^4.1.0", "jspdf-autotable": "^5.0.7", "lenis": "^1.3.17", "lexical": "0.35.0", "lodash": "^4.17.23", "lodash.debounce": "^4.0.8", "lucide-react": "^0.562.0", "mongodb": "^7.0.0", "motion": "^12.26.1", "papaparse": "^5.5.3", "punycode": "^2.3.1", "radix-ui": "^1.4.3", "react": "19.2.3", "react-dom": "19.2.3", "react-icons": "^5.5.0", "react-phone-number-input": "^3.4.14", "resend": "^6.8.0", "sonner": "^2.0.7", "tailwind-merge": "^3.0.2", "tailwindcss": "^4.0.6", "tw-animate-css": "^1.3.6", "vite-tsconfig-paths": "^6.0.2", "xlsx": "^0.18.5", "zod": "^4.3.5", "zxcvbn": "^4.4.2" }, "devDependencies": { "@biomejs/biome": "2.2.4", "@cloudflare/vite-plugin": "^1.25.0", "@react-email/preview-server": "5.2.5", "@tanstack/devtools-vite": "^0.3.11", "@testing-library/dom": "^10.4.0", "@testing-library/react": "^16.2.0", "@types/lodash.debounce": "^4.0.9", "@types/node": "^22.10.2", "@types/papaparse": "^5.5.2", "@types/react": "^19.2.0", "@types/react-dom": "^19.2.0", "@types/zxcvbn": "^4.4.5", "@vitejs/plugin-react": "^5.0.4", "babel-plugin-react-compiler": "^1.0.0", "jsdom": "^27.0.0", "knip": "^5.83.1", "react-email": "5.2.5", "typescript": "^5.7.2", "vite": "^7.1.7", "vite-bundle-analyzer": "^1.3.6", "vite-bundle-visualizer": "^1.2.1", "vitest": "^3.0.5", "web-vitals": "^5.1.0", "wrangler": "^4.69.0" } } ". I've been trying to fix this for 2 weeks but nothing, thanks in advance to everyone for helping me.