Josh Grant
Josh Grant
TTCTheo's Typesafe Cult
Created by DraganovicDr on 11/27/2023 in #questions
Seeking Advice for a T3 Stack Application: Separating tRPC from NextJS
I see this thread is old, but incase someone else is interested in this less common approach. I am very far down the road with this stack and regret a few choices: prisma tRPC Clerk NextJS turborepo AWS ECS AWS RDS Vercel is not HIPAA Compliant so that was not an option. Amplify does not allow me to run the server in a VPC so that was not an option. Let me know if you want to talk sometime, you might save some time and avoid some of the battles I have had.
14 replies
TTCTheo's Typesafe Cult
Created by 𝓐𝓷𝓭𝔂 on 10/13/2023 in #questions
Getting 401 error code with public procedure
You may want to look at handling autherization in trpc for the trpc routes. You would modify the middleware for nextjs so the trpc routes are not protected by Clerk directly. https://trpc.io/docs/server/authorization
6 replies
TTCTheo's Typesafe Cult
Created by 𝓐𝓷𝓭𝔂 on 10/13/2023 in #questions
Getting 401 error code with public procedure
The clerk middleware is protecting your trpc routes.
6 replies
TTCTheo's Typesafe Cult
Created by Josh Grant on 10/11/2023 in #questions
Consulting on HIPAA compliant T3 based application
Awesome, I appreciate your insight and will test with a dummy key.
28 replies
TTCTheo's Typesafe Cult
Created by Josh Grant on 10/11/2023 in #questions
Consulting on HIPAA compliant T3 based application
I will give that a shot, thanks. All routes are secured behind clerk so I am not sure the prerendering is helping with anything.
28 replies
TTCTheo's Typesafe Cult
Created by Josh Grant on 10/11/2023 in #questions
Consulting on HIPAA compliant T3 based application
I can work with the three builds, I would prefer to use the same image artifact for all environments, but not the worse thing.
28 replies
TTCTheo's Typesafe Cult
Created by Josh Grant on 10/11/2023 in #questions
Consulting on HIPAA compliant T3 based application
It is prerendering by default.
Error occurred prerendering page "/en". Read more: https://nextjs.org/docs/messages/prerender-error
Error: @clerk/nextjs: Missing publishableKey.
at Object.throwMissingPublishableKeyError (/app/node_modules/@clerk/shared/dist/cjs/errors/thrower.js:69:13)
Error occurred prerendering page "/en". Read more: https://nextjs.org/docs/messages/prerender-error
Error: @clerk/nextjs: Missing publishableKey.
at Object.throwMissingPublishableKeyError (/app/node_modules/@clerk/shared/dist/cjs/errors/thrower.js:69:13)
28 replies
TTCTheo's Typesafe Cult
Created by Josh Grant on 10/11/2023 in #questions
Consulting on HIPAA compliant T3 based application
On my list to dive deeper in to, but it has something to do with next build pregenerating pages that need the token.
28 replies
TTCTheo's Typesafe Cult
Created by Josh Grant on 10/11/2023 in #questions
Consulting on HIPAA compliant T3 based application
Two for now, the application will run in three different AWS accounts. dev/stage/prod. I two Clerk environments, one for dev/stage the other for prod.
28 replies
TTCTheo's Typesafe Cult
Created by Josh Grant on 10/11/2023 in #questions
Consulting on HIPAA compliant T3 based application
Thank you for responding. I am considering building a docker image in a GitHub Actions runner and deploying it to ECS, possibly using aws copilot. Weirdest issue with that is having to build a docker image for dev, test and production. The Clerk public token is needed at build time so I can not build one docker image for all of my environments.
28 replies
TTCTheo's Typesafe Cult
Created by Josh Grant on 10/11/2023 in #questions
Consulting on HIPAA compliant T3 based application
Intentionally not sending any PHI to clerk
28 replies