{ "$schema": "node_modules/wrangler/config-schema.json", "name": "leakhub", // Workers Assets configuration - replaces Pages' pages_build_output_dir // "not_found_handling": "single-page-application" enables SPA routing // so that /dashboard and other client-side routes serve index.html instead of 404 "assets": { "directory": "./dist", "not_found_handling": "single-page-application", }, // Required compatibility date for Workers runtime features "compatibility_date": "2025-06-05", // Route all traffic from leakhub.ai to this Worker // The wildcard (*) at the end matches all paths (/, /dashboard, /browse, etc.) "routes": [ { "pattern": "leakhub.ai/*", "zone_name": "leakhub.ai", }, { "pattern": "www.leakhub.ai/*", "zone_name": "leakhub.ai", }, ], }