布鲁诺 普雷托
Explore posts from serversCDCloudflare Developers
•Created by 布鲁诺 普雷托 on 11/8/2024 in #pages-help
Serving Static Files - Hono
So I am trying to convert a previous project of mine from express to Hono (IDK if its the best option or not.. I'd like some feedback/advice).
I always start by deploying static stuff to check if everything is according to plan, however I don't seem to be able and serve my static 404 page.
From what I gather I have to add to the toml file the following:
Am I suppose to add something else in my index.ts file ? I saw Hono has the following possibility
I can serve the file if I past it plain in the index.ts file, however for code/folder structure purposes I prefer not to do so...
I'd really appreciate some help in this manner.
Cheers
:cheers:
1 replies
CDCloudflare Developers
•Created by 布鲁诺 普雷托 on 7/20/2024 in #workers-help
R2 via workers returnind undefined for list, get, delete and put requests
I have everythin in 'modules' to organize the code better
index.js
pageHandler.js
corsHandler.js
I created a bucket so that the static and dynamic html files can be fetched
When I call the pageHandler from index I send the request, env and ctx as parameters,however it seems to not pass the object at all
3 replies
CDCloudflare Developers
•Created by 布鲁诺 普雷托 on 7/14/2024 in #workers-help
CORS Missing Allow Origin
I am havin problems with the Cors, the code I'm about to send here worked before, out of the blue it stopped working, is anyone able to help out?
1 replies
CDCloudflare Developers
•Created by 布鲁诺 普雷托 on 7/10/2024 in #workers-help
Error: D1_ERROR: near "MERGE": syntax error at offset 3
2 replies
CDCloudflare Developers
•Created by 布鲁诺 普雷托 on 7/10/2024 in #workers-help
✘ [ERROR] Error: The 'mode' field on 'RequestInitializerDict' is not implemented.
✘ [ERROR] Error: The 'mode' field on 'RequestInitializerDict' is not implemented.
4 replies
CDCloudflare Developers
•Created by 布鲁诺 普雷托 on 4/11/2024 in #general-help
Cloudflare calls
Can someone help me out with this?
4 replies
CDCloudflare Developers
•Created by 布鲁诺 普雷托 on 3/2/2024 in #workers-help
Serve js files or json responses
I wanna do something like this with cloudflare workers:
How to do this, if possible
5 replies