Trevor
Explore posts from serversEDSEthan's dev spot
•Created by Trevor on 10/8/2023 in #questions
BETH stack tutorial non-blocking: `pushToTenantDb` returns exit code of 1
Per the title this bit of code is causing a small problem:
The
exitCode
evaluates to 1
and the error
evaluates to undefined
. The tenant db is successfully created in Turso and the unlinkSync
I think is working as well, so I'm not sure what's causing the exit code. Here's the error:
Noticing that that tenant db is indeed successfully getting pushed to Turso I wrapped the call to this function in the organization controller with a try catch and just logged out the error.
I still log the errors, but this pushes the tenant db to Turso and adds the record to the organization
table. It also updates the user
table as it should.30 replies
EDSEthan's dev spot
•Created by Trevor on 9/29/2023 in #questions
BETH stack tutorial blocked "Sync is not supported in databases opened in file mode."
After creating a Turso db and adding the needed
.env
variables running bun dev
results in the follwing error.
Nothing is getting served to localhost:3000
but a GET
request to localhost:3001
returns a 404 not found <:honk_thonk:753870955234721821>
I guess I have 2 questions:
1. Why is this command spinning something up on 3001? I've ensured there's nothing running on 3000.
2. It seems like the problem is in the libsql
package within node modules. Not sure if this is related to issue I was having with Bun installing the wrong version of esbuild for my CPU architecture or if that's a coincidence.
Once again, appreciate any thoughts anyone might have.
Thanks!45 replies
EDSEthan's dev spot
•Created by Trevor on 9/28/2023 in #questions
BETH stack tutorial blocked with esbuild and rendering
![No description](https://cdn.answeroverflow.com/1157103560895516803/image.png)
11 replies
TTCTheo's Typesafe Cult
•Created by Trevor on 7/2/2023 in #questions
env-nextjs not able to find .env variables
At least I think that's what's going on. Here's what I have in
env.ts
When I try to run a command that uses one of these variables (drizzle-kit push:mysql
) the Zod parse fails and gives me this in the terminal:
My env variables are defined at the root of the same directory env.ts
is in, .env.local
I think this is saying it can't find them? Any help would be appreciated, I'm sure I'm missing something simple <:honk_thonk:753870955234721821>49 replies