布鲁诺 普雷托
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
DIAdiscord.js - Imagine an app
•Created by 布鲁诺 普雷托 on 2/3/2024 in #djs-questions
ffmpeg errors
here is my code, part of it:
14 replies
DIAdiscord.js - Imagine an app
•Created by 布鲁诺 普雷托 on 11/18/2023 in #djs-questions
Know which device it it
Is there a way to know in which device the user is? I have a few interactions that work 100% on the computer/web, but on mobile it gets laggy, so i want to have 2 response types, desktop and mobile, so the UI is more pleasant
13 replies
DIAdiscord.js - Imagine an app
•Created by 布鲁诺 普雷托 on 6/1/2023 in #djs-questions
Click Button Error
3 replies
DIAdiscord.js - Imagine an app
•Created by 布鲁诺 普雷托 on 5/26/2023 in #djs-questions
Button to show modal
7 replies
DIAdiscord.js - Imagine an app
•Created by 布鲁诺 普雷托 on 5/22/2023 in #djs-questions
Autocomplete 25 entries limit bypass
How can I bypass the 25 entries limit? I have an array of about 8000 entries
11 replies
DIAdiscord.js - Imagine an app
•Created by 布鲁诺 普雷托 on 5/22/2023 in #djs-questions
Missing Permissions
13 replies
DIAdiscord.js - Imagine an app
•Created by 布鲁诺 普雷托 on 2/1/2023 in #djs-questions
Message Commands and Actions
Hi, I've been for the past 2 hours trying to understand the commands that are prompt using < /test:0>, up till now what I understood is that </test:0> in a message will create some sort of built-in hyperlink and automatically fill the message prompt with /test. And the 0 is the command ID
Similar to this there's <@USER_ID>
My question is, what else can be done in the </Command:C_id> or what other cool stuff can be done using <> . I can't seem to find any documentation on this.
5 replies
DIAdiscord.js - Imagine an app
•Created by 布鲁诺 普雷托 on 11/28/2022 in #djs-questions
Command Interactions Handler
So I have the folder ./commands, where I've got my commands, all is good there, however with button/menu interactions I manage them in the index.js file, I'm wondering if theres a way to handle them externaly in another file
37 replies
DIAdiscord.js - Imagine an app
•Created by 布鲁诺 普雷托 on 11/21/2022 in #djs-questions
Create TextChannels
80 replies