xyzmani
xyzmani
TTCTheo's Typesafe Cult
Created by xyzmani on 2/9/2025 in #questions
Invalid environment variables error | My Biggest Tutorial Ever Video
i'm getting this error while following Theo's latest tutorial. The error looks something like this:
❯ pnpm run db:push

> [email protected] db:push /home/anar/Music/anar/gh/drive-tutorial
> drizzle-kit push

No config path provided, using default 'drizzle.config.ts'
Reading config file '/home/anar/Music/anar/gh/drive-tutorial/drizzle.config.ts'
❌ Invalid environment variables: { SINGLESTORE_USER: [ 'Required' ] }
Invalid environment variables
 ELIFECYCLE  Command failed with exit code 1.
❯ pnpm run db:push

> [email protected] db:push /home/anar/Music/anar/gh/drive-tutorial
> drizzle-kit push

No config path provided, using default 'drizzle.config.ts'
Reading config file '/home/anar/Music/anar/gh/drive-tutorial/drizzle.config.ts'
❌ Invalid environment variables: { SINGLESTORE_USER: [ 'Required' ] }
Invalid environment variables
 ELIFECYCLE  Command failed with exit code 1.
drizzle.config:
import { type Config } from "drizzle-kit";

import { env } from "~/env";

export default {
schema: "./src/server/db/schema.ts",
dialect: "singlestore",
tablesFilter: ["drive_tutorial_*"],
dbCredentials: {
host: env.SINGLESTORE_HOST,
port: parseInt(env.SINGLESTORE_PORT),
user: env.SINGLESTORE_USER,
password: env.SINGLESTORE_PASS,
database: env.SINGLESTORE_DB_NAME,
ssl: {},
},
} satisfies Config;
import { type Config } from "drizzle-kit";

import { env } from "~/env";

export default {
schema: "./src/server/db/schema.ts",
dialect: "singlestore",
tablesFilter: ["drive_tutorial_*"],
dbCredentials: {
host: env.SINGLESTORE_HOST,
port: parseInt(env.SINGLESTORE_PORT),
user: env.SINGLESTORE_USER,
password: env.SINGLESTORE_PASS,
database: env.SINGLESTORE_DB_NAME,
ssl: {},
},
} satisfies Config;
8 replies
TTCTheo's Typesafe Cult
Created by xyzmani on 12/31/2024 in #questions
secure API using middleware | NextJS
yeah, how?
5 replies
TTCTheo's Typesafe Cult
Created by xyzmani on 12/27/2024 in #questions
transparency in Ghostty
how do I make Ghostty window transparent?
17 replies