itsanameidk
itsanameidk
Explore posts from servers
TTCTheo's Typesafe Cult
Created by itsanameidk on 11/11/2024 in #questions
is trpc good for rest apis?
Is trpc good for making rest apis? cause i feel like api/trpc/posts.getLatest isnt that compeling of a url vs api/posts/latest. is their a way to change trpc to do something like api/posts/latest? or am i fundamentaliy looking at trpc wrong?
8 replies
DTDrizzle Team
Created by itsanameidk on 11/10/2023 in #help
Generate Random UUID Sqlite
Hey i was wondering how i would create a unique ID that contains a random string of characters for a text?
model User {
id String @id @default(uuid())
}
model User {
id String @id @default(uuid())
}
Something like this but instead of mysql and primsa. Have Sqlite and Drizzle
10 replies
CDCloudflare Developers
Created by itsanameidk on 11/3/2023 in #general-help
Configuring Application Cloudflare errors
Hey im following https://developers.cloudflare.com/pages/framework-guides/deploy-a-svelte-site/ and ran
npm create cloudflare@latest my-svelte-app -- --framework=svelte
npm create cloudflare@latest my-svelte-app -- --framework=svelte
anyone know why id be getting this error and how to fix it?
╭ Configuring your application for Cloudflare Step 2 of 3

├ Installing dependencies
│ installed via `npm install`

├ Adding the Cloudflare Pages adapter
│ npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\@sveltejs\adapter-cloudflare/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\@sveltejs\adapter-cloudflare\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in: C:\Users\name\AppData\Local\npm-cache\_logs\2023-11-03T20_06_25_533Z-debug-0.log


Error: npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\@sveltejs\adapter-cloudflare/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\@sveltejs\adapter-cloudflare\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in: C:\Users\name\AppData\Local\npm-cache\_logs\2023-11-03T20_06_25_533Z-debug-0.log

npm ERR! code 1
npm ERR! path C:\Users\josep\OneDrive\Desktop\asdasasddasdasasdasdasdasdasd
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c create-cloudflare my-svelte-app --framework=svelte

npm ERR! A complete log of this run can be found in: C:\Users\name\AppData\Local\npm-cache\_logs\2023-11-03T20_05_53_585Z-debug-0.log
╭ Configuring your application for Cloudflare Step 2 of 3

├ Installing dependencies
│ installed via `npm install`

├ Adding the Cloudflare Pages adapter
│ npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\@sveltejs\adapter-cloudflare/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\@sveltejs\adapter-cloudflare\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in: C:\Users\name\AppData\Local\npm-cache\_logs\2023-11-03T20_06_25_533Z-debug-0.log


Error: npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\@sveltejs\adapter-cloudflare/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\@sveltejs\adapter-cloudflare\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in: C:\Users\name\AppData\Local\npm-cache\_logs\2023-11-03T20_06_25_533Z-debug-0.log

npm ERR! code 1
npm ERR! path C:\Users\josep\OneDrive\Desktop\asdasasddasdasasdasdasdasdasd
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c create-cloudflare my-svelte-app --framework=svelte

npm ERR! A complete log of this run can be found in: C:\Users\name\AppData\Local\npm-cache\_logs\2023-11-03T20_05_53_585Z-debug-0.log
1 replies
CDCloudflare Developers
Created by itsanameidk on 2/6/2023 in #workers-help
Cannot build with github actions
Hey i can do wrangler publish but i cannot seem to publish through github actions with the wrangler actions https://github.com/cloudflare/wrangler-action
✘ [ERROR] Could not resolve "hono"

src/constants.ts:1:21:
1 │ import { Hono } from "hono";
╵ ~~~~~~

You can mark the path "hono" as external to exclude it from the bundle, which will remove this error.


✘ [ERROR] Build failed with 1 error:

src/constants.ts:1:21: ERROR: Could not resolve "hono"
✘ [ERROR] Could not resolve "hono"

src/constants.ts:1:21:
1 │ import { Hono } from "hono";
╵ ~~~~~~

You can mark the path "hono" as external to exclude it from the bundle, which will remove this error.


✘ [ERROR] Build failed with 1 error:

src/constants.ts:1:21: ERROR: Could not resolve "hono"
i just seem to get this error anyone know how to fix?
2 replies
CDCloudflare Developers
Created by itsanameidk on 2/5/2023 in #workers-help
Multiple files
Is there a way to have multiple files so i can break the requests up into their own file instead of having one big file?
6 replies
TTCTheo's Typesafe Cult
Created by itsanameidk on 11/24/2022 in #questions
Save Next-auth Refresh Token
Hey was wondering if there is a way of changing the cookies that are presented by default when logging in and using my own cookies to have a refresh token? Unless im miss understanding what Next-auth does cause don't you need to have some database and a refresh token to check againts the cookies the user provides?
1 replies
TTCTheo's Typesafe Cult
Created by itsanameidk on 10/14/2022 in #questions
NextAuth Alternatives
Hello, im looking for a NextAuth alternative because cloudflare functions isn't supported yet https://github.com/nextauthjs/next-auth/issues/5142 anyone know of an alternative? Reason im wanting an alternative instead of just waiting is cause i think it will, take a while to actually get pushed and my application mainly focuses on having some sort of google auth.
3 replies
TTCTheo's Typesafe Cult
Created by itsanameidk on 10/8/2022 in #questions
Is t3 stack good for serverless
Is everything in t3 good for serverless without having any cold starts?
22 replies
TTCTheo's Typesafe Cult
Created by itsanameidk on 10/2/2022 in #questions
Where to start for frontend
So im trying to decide where to start for the frontend side of development. I decided i wanted to do Actix Web a rust language library for the backend. The reason i wanted to at least do the backend as rust is cause i heard its faster and i want to learn more and use rust. Although i cannot decide what to do for the frontend. Should i use react or what should i use? Haven't ever really messed with react or Javascript this is my first web project
19 replies
TTCTheo's Typesafe Cult
Created by itsanameidk on 9/18/2022 in #questions
create mysql database automatically
Hello, i was wondering what is the best way of creating a mysql database automatically. Heard https://www.terraform.io/ may be a good option but it seems like its for larger projects and i don't really expect to have a large amount of data to begin with. Is there a better alternative or should i just go ahead and start learning Terraform
10 replies