x
This commit is contained in:
parent
3ceccb0392
commit
9f98c853db
1 changed files with 5 additions and 5 deletions
10
worker.js
10
worker.js
|
|
@ -27,11 +27,11 @@ export default {
|
|||
return handleOptions();
|
||||
}
|
||||
|
||||
// Check if this is an API request (starts with /api/)
|
||||
if (!path.startsWith('/api/')) {
|
||||
// For non-API routes, pass through to Cloudflare Pages
|
||||
return fetch(request);
|
||||
}
|
||||
// // Check if this is an API request (starts with /api/)
|
||||
// if (!path.startsWith('/api/')) {
|
||||
// // For non-API routes, pass through to Cloudflare Pages
|
||||
// return fetch(request);
|
||||
// }
|
||||
|
||||
// For GET requests, try to serve from cache first
|
||||
if (request.method === "GET") {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue