__fallenreaper
TTCTheo's Typesafe Cult
•Created by Hycord | @ When Replying on 4/18/2023 in #questions
dockerizing typescript
I have certainly containerized my t3-create-app into a Dockerfile, sure. That had some small hiccups on my research because some of the documentation is slightly out of date, BUT i got it working. I never deployed to vercel though, and presume that it will not take containers.
4 replies
TTCTheo's Typesafe Cult
•Created by Paweł on 4/3/2023 in #questions
Error of object possibly undefined
Can you send me a code snippet or provide a github where this is a problem to better understand outlier constraints?
9 replies
TTCTheo's Typesafe Cult
•Created by Paweł on 4/3/2023 in #questions
Error of object possibly undefined
Looking to create a quick sample in VSC rq
9 replies
TTCTheo's Typesafe Cult
•Created by Paweł on 4/3/2023 in #questions
Error of object possibly undefined
youre assigning a value to possibly be undefined, so you should consider a base value?
9 replies
TTCTheo's Typesafe Cult
•Created by __fallenreaper on 3/21/2023 in #questions
create-t3-app Dockerizing base install fails with Prisma?
I ended up using a different image.
BASE_IMAGE=node:18-alpine3.17
4 replies
TTCTheo's Typesafe Cult
•Created by __fallenreaper on 3/21/2023 in #questions
create-t3-app Dockerizing base install fails with Prisma?
ALMOST a 1:1 that I did manage to find which proves somewhat useful is: https://github.com/nicolomaioli/t3-docker-compose
It uses mysql but is a decent starting point. The only thing I am trying to figure out and do is encapsulate the non mysql npm commands into the DB. What I surmise is that I will need to create an updated database which also does the prisma push from within its build to retain its correctness or something. Then I should be able to deploy the rest of this to its own container.
4 replies
TTCTheo's Typesafe Cult
•Created by __fallenreaper on 3/21/2023 in #questions
create-t3-app Dockerizing base install fails with Prisma?
It seems that the prisma website might be attempting to say to set up a postgres container, and then the DATABASE url would be in the format of:
postgresql://USER:PASSWORD@HOST:PORT/DATABASE?KEY1=VALUE&KEY2=VALUE&KEY3=VALUE
which I may be able to use to properly connect to the database, but the DATABASE_URL Property is rejected as an Invalid URL so i was unsure if this was the right thing or not.
I did a proof of concept setting that in the docker-compose env area, to say: DATABASE_URL=postgresql://USER:PASSWORD@HOST:PORT/DATABASE?KEY1=VALUE&KEY2=VALUE&KEY3=VALUE
to see if it would be valid and it failed. So i was curious if zod's url() command is not accurate in understanding the connection string as a url4 replies
TTCTheo's Typesafe Cult
•Created by __fallenreaper on 1/23/2023 in #questions
Upsert seems to give me an error about returning type any?
So it seems to understand one but not the other is kinda weird, which is while it seems that the linter doesnt seem to understand it, why is it an isolated case.
5 replies
TTCTheo's Typesafe Cult
•Created by __fallenreaper on 1/23/2023 in #questions
Upsert seems to give me an error about returning type any?
It is vscode giving me errors, so it doesnt recognize types. It does seem like it builds. I was thinking that maybe there is something wrong with my typescript-eslint, but i didnt see any flags in the create-t3 sample Example.ts file.
5 replies
TTCTheo's Typesafe Cult
•Created by __fallenreaper on 1/23/2023 in #questions
Upsert seems to give me an error about returning type any?
I been working on this throughout the night, but i still dont understand why Theos sample is properly returning a type, but this sample isnt.
I did the prisma db push, and the npm build to see if that resolved things, but it didnt.
5 replies