gave_one
gave_one
Explore posts from servers
HHono
Created by gave_one on 4/6/2025 in #help
Hono Client Double-Prefixing Issue
const app = new Hono();
// Logging middleware
app.use('*', logger());
// CORS middleware
app.use('*', cors());

// API route example
const apiRoutes = app.basePath('/api')
.route("/project" , ProjectRoute);
// app.on(["POST", "GET"], "/api/auth/**", (c) => auth.handler(c.req.raw));

apiRoutes.route("/project" , ProjectRoute);
// Serve frontend
app.use('*', serveStatic({ root: './frontend/dist' }));
app.use('*', serveStatic({ path: './frontend/dist/index.html' }));
const port = Number(process.env.PORT || 3000)
Bun.serve({
hostname: '0.0.0.0',
port,
fetch: app.fetch,
})

console.log(`Server is listening at http://localhost:${port}`);
export type APIRoutes = typeof apiRoutes;
const app = new Hono();
// Logging middleware
app.use('*', logger());
// CORS middleware
app.use('*', cors());

// API route example
const apiRoutes = app.basePath('/api')
.route("/project" , ProjectRoute);
// app.on(["POST", "GET"], "/api/auth/**", (c) => auth.handler(c.req.raw));

apiRoutes.route("/project" , ProjectRoute);
// Serve frontend
app.use('*', serveStatic({ root: './frontend/dist' }));
app.use('*', serveStatic({ path: './frontend/dist/index.html' }));
const port = Number(process.env.PORT || 3000)
Bun.serve({
hostname: '0.0.0.0',
port,
fetch: app.fetch,
})

console.log(`Server is listening at http://localhost:${port}`);
export type APIRoutes = typeof apiRoutes;
8 replies
HHono
Created by gave_one on 4/6/2025 in #help
Hono Client Double-Prefixing Issue
No description
8 replies
PPrisma
Created by gave_one on 7/24/2024 in #help-and-questions
I have a nested create many query I am getting Unknown argument 'QuestionOptions'
3 replies
PPrisma
Created by gave_one on 7/23/2024 in #help-and-questions
I have a nested create many query I am getting Unknown argument 'answers'
@Nurul (Prisma)
5 replies
PPrisma
Created by gave_one on 7/23/2024 in #help-and-questions
I have a nested create many query I am getting Unknown argument 'answers'
5 replies
TtRPC
Created by gave_one on 4/21/2024 in #❓-help
tRPC failed on <no-path>: `headers` was called outside a request scope
if you do not configure React Query properly you will have headaches
9 replies
TtRPC
Created by gave_one on 4/21/2024 in #❓-help
tRPC failed on <no-path>: `headers` was called outside a request scope
@Will Lutz I abandoned the T3 stack did stuff manually I installed the necessary stuff for a next.js app I'm pretty sure you know the stuff with authentication But the thing I used to replace TRPC is React server - actions : https://react.dev/reference/rsc/server-actions React query / TanStack Query v5 : https://tanstack.com/query/latest/docs/framework/react/overview A good video to explain it : https://www.youtube.com/watch?v=OgVeQVXt7xU&t=314s&pp=ygUVUmVhY3Qgc2VydmVyLCBhY3Rpb25z
9 replies
TtRPC
Created by gave_one on 4/21/2024 in #❓-help
tRPC failed on <no-path>: `headers` was called outside a request scope
I never figured it out, but I found a different solution also helps me maintain type safety and ease of use
9 replies
PPrisma
Created by gave_one on 5/28/2024 in #help-and-questions
prisma accelerate can I connect to my database?
No description
11 replies
TTCTheo's Typesafe Cult
Created by gave_one on 4/29/2024 in #questions
trpc mutation. "await in execute (async)"
A better isolate of the component
12 replies
TTCTheo's Typesafe Cult
Created by gave_one on 4/29/2024 in #questions
trpc resource: the server responded with a status of 500 I'm really confused
No description
4 replies
TTCTheo's Typesafe Cult
Created by gave_one on 4/29/2024 in #questions
trpc mutation. "await in execute (async)"
trpc :Src -> server -> api -> routers -> auth.ts Being used :Src -> components -> auth -> [ register.tsx. | login.tsx ] The rest of the configuration is default https://github.com/gaveone/expo-A
12 replies
TTCTheo's Typesafe Cult
Created by gave_one on 4/29/2024 in #questions
trpc mutation. "await in execute (async)"
await api.auth.IserChecker.useMutation() this can not word in a client component
12 replies
TTCTheo's Typesafe Cult
Created by gave_one on 4/29/2024 in #questions
trpc mutation. "await in execute (async)"
that the await App.mutate( Data)
12 replies
TTCTheo's Typesafe Cult
Created by gave_one on 4/29/2024 in #questions
trpc mutation. "await in execute (async)"
No description
12 replies
TTCTheo's Typesafe Cult
Created by gave_one on 4/29/2024 in #questions
trpc mutation. "await in execute (async)"
@peterkyle01
12 replies
TTCTheo's Typesafe Cult
Created by gave_one on 4/29/2024 in #questions
trpc mutation. "await in execute (async)"
If I do that next.js will start screaming at me
12 replies
TTCTheo's Typesafe Cult
Created by gave_one on 4/29/2024 in #questions
trpc mutation. "await in execute (async)"
Sorry for the late response but the problem is It’s is in a use client component
12 replies
TTCTheo's Typesafe Cult
Created by gave_one on 4/29/2024 in #questions
trpc mutation. "await in execute (async)"
what is "await in execute (async)"
12 replies