Shane
Explore posts from serversCDCloudflare Developers
•Created by Shane on 10/17/2024 in #pages-help
Force buildsystem v2 to use --legacy-peer-deps
I set my build command to npm install --legacy-peer-deps, but it is still installing with clean-install
Tried setting this to true, but no luck
https://discord.com/channels/595317990191398933/1020053805263507577/1104506977788366908
I cannot find any documentation on how to fix this, and if you search this discord there are hundreds of people running into the same issue / asking the same question.
6 replies
Trying to render page from post request
It seems like there is no Nuxt3 equivalent for nuxt.render https://github.com/nuxt/nuxt/issues/26378
Is there a way I can send a post request with a body to the nuxt server and receive an html response (not a redirect)?
11 replies
KPCKevin Powell - Community
•Created by Shane on 5/1/2024 in #back-end
Confused by Kysely
I'm using kysely for a project and I'm using it to create tables, however now that I create the tables with the columns and behaviors I want, I need to essentially do the same by writing the typescript type, which seems bad. Am I missing something or is that really how I'm expected to do this?
for example here is a users table
Now if I want this to have typescript types I have to write this as well
I would think that the library should be able to auto generate this type from all the information I give it when I create the damn table
8 replies
KPCKevin Powell - Community
•Created by Shane on 4/20/2024 in #back-end
next auth help
does anyone have experience with next auth? I'm finding the documentation to be sub par. Currently I'm struggling to figure out how to handle signin errors using the credentials provider.
3 replies
KPCKevin Powell - Community
•Created by Shane on 4/3/2024 in #ui-ux
is this button too much
https://svgzip.com/
would love some general design feedback. I feel like I maybe went a bit overboard with the button CSS animation, but lmk (the background animation is only visiblein dark mode, oop)
it looks way better in dark mode so open to suggestions for making the lightmode pretty
13 replies
KPCKevin Powell - Community
•Created by Shane on 3/27/2024 in #back-end
creating a historical database for graph generation
Anyone have opinions / thoughts / experience on the best way to store database history? Like if I was storing the values of a stock ticker and wanted to generate a graph of stock price over time (not my actual use case but similar idea).
Seems like there are a lot of wrong ways to do it.
I'll be accessing the DB with an expressJS server and I haven't choosen a database stack yet
116 replies
CDCloudflare Developers
•Created by Shane on 1/3/2024 in #workers-help
typescript durable objects transaction api
Is there an example of how to type durable objects in the storage api?
I guess I'd want to define the type of stuff accessed through this.storage.get()/set()
2 replies
CDCloudflare Developers
•Created by Shane on 10/21/2023 in #workers-help
worker functions locally, but not when deployed
In production this code fails to retrieve data like 80% of the time. I added some debugging code to retry the request in the worker and it sometimes will fail the first x requests and eventually works and sometimes it fails all the requests. When running locally it works 100% of the time.
Is there a way I can run cloudflare workers on my own servers (open to suggestions for cloud providers) , or a way to fix my code to make this work 100% of the time?
Here is a link you can open to test
and the source code is attached
https://banner.mines.rocks/?season=fall&year=2021&courseNumber=250&subject=CSCI
36 replies