Merge pull request #13 from vividsystem/main
97999cf2
2 file(s) · +4 −2
| 77 | 77 | { |
|
| 78 | 78 | "scripts": { |
|
| 79 | 79 | // Other scripts |
|
| 80 | - | "deploy:client": "bun run build:client && bunx wrangler deploy client/dist" |
|
| 80 | + | "deploy:client": "bun run build:client && bunx wrangler pages deploy client/dist" |
|
| 81 | 81 | } |
|
| 82 | 82 | } |
|
| 83 | 83 | ``` |
| 122 | 122 | "compatibility_date": "2025-05-25", |
|
| 123 | 123 | "assets": { |
|
| 124 | 124 | "directory": "./client/dist", // Path to client build folder |
|
| 125 | - | "not_found_handling": "single-page-application" // Handle SPA routing |
|
| 125 | + | "not_found_handling": "single-page-application", // Handle SPA routing |
|
| 126 | + | "run_worker_first": ["/api/*"] |
|
| 127 | + | ||
| 126 | 128 | }, |
|
| 127 | 129 | "compatibility_flags": ["nodejs_compat"] // Enable node for Vite path features |
|
| 128 | 130 | } |