ed.upton
TTCTheo's Typesafe Cult
•Created by ed.upton on 6/4/2023 in #questions
Use Clerk `getAuth(req)` in a Zact server action
Is there a way to get the Next request object in a Zact server action.
I require this to be able to get the current user using Clerk's
getAuth
function14 replies
TTCTheo's Typesafe Cult
•Created by ed.upton on 5/27/2023 in #questions
Recursive References in TypeScript
I'm stuck with a very specific TS/JS problem, which may not be solvable but I thought I'd see if anyone here has a cool idea on how to solve it.
So I have a file
index.ts
with a mapping from some keys to objects:
Then, in the files that contain the objects, they may refer to each other, e.g. in a.ts
I may have:
Currently with this setup, I get __WEBPACK_DEFAULT_EXPORT__
and Cannot access 'B' before initialization
errors.3 replies
TTCTheo's Typesafe Cult
•Created by ed.upton on 5/10/2023 in #questions
How to Push schema from drizzle to planetscale
I've moved from Prisma to Drizzle, but wondering if there is an alternative to the
prisma db push
3 replies
TTCTheo's Typesafe Cult
•Created by ed.upton on 2/8/2023 in #questions
Get tRPC Connection Status
Is there a way I can get the current connection status without having to create a specific query that regularly pings?
9 replies
TTCTheo's Typesafe Cult
•Created by ed.upton on 2/7/2023 in #questions
Next Build Works Locally, But Not on Server
Running
yarn build
(i.e. next build
) locally successfully creates the optimised build, with the following output:
However, when its built on my production server, it seems to only lint (even though it is still running next build
) with this output:
I don't get this problem on previous versions of my code, and I'm wondering if somehow the build is silently failing?2 replies
TTCTheo's Typesafe Cult
•Created by ed.upton on 2/5/2023 in #questions
Next Build Stops After Type Validations
I have a dokku deployment set up which when running, no longer successfully builds my app. The logs outputted are the following:
and you can see that it does not output the actual building and optimisation steps, e.g.:
Running the build locally works fine, and deploying the previous working commit still works as expected.
2 replies