xyzmani
xyzmani
TTCTheo's Typesafe Cult
Created by xyzmani on 2/9/2025 in #questions
Invalid environment variables error | My Biggest Tutorial Ever Video
fixed now, the issue was with the SINGLESTORE_DB_NAME. It was different on the singlestore CPanel and my .env.
8 replies
TTCTheo's Typesafe Cult
Created by xyzmani on 2/9/2025 in #questions
Invalid environment variables error | My Biggest Tutorial Ever Video
No description
8 replies
TTCTheo's Typesafe Cult
Created by xyzmani on 2/9/2025 in #questions
Invalid environment variables error | My Biggest Tutorial Ever Video
just made sure and re-ran the command, now it returns 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'
 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'
 ELIFECYCLE  Command failed with exit code 1.
8 replies
TTCTheo's Typesafe Cult
Created by xyzmani on 2/9/2025 in #questions
Invalid environment variables error | My Biggest Tutorial Ever Video
i'm sure i have that though:
# When adding additional environment variables, the schema in "/src/env.js"
# should be updated accordingly.

# Drizzle
DATABASE_URL="file:./db.sqlite"

# Example:
# SERVERVAR="foo"
# NEXT_PUBLIC_CLIENTVAR="bar"

SINGLESTORE_USER="{RETRACTED}"
SINGLESTORE_PASS="{RETRACTED}"
SINGLESTORE_HOST="{RETRACTED}"
SINGLESTORE_PORT="3333"
SINGLESTORE_DB_NAME="drive"

MORE ENV STUFF...
# When adding additional environment variables, the schema in "/src/env.js"
# should be updated accordingly.

# Drizzle
DATABASE_URL="file:./db.sqlite"

# Example:
# SERVERVAR="foo"
# NEXT_PUBLIC_CLIENTVAR="bar"

SINGLESTORE_USER="{RETRACTED}"
SINGLESTORE_PASS="{RETRACTED}"
SINGLESTORE_HOST="{RETRACTED}"
SINGLESTORE_PORT="3333"
SINGLESTORE_DB_NAME="drive"

MORE ENV STUFF...
8 replies
TTCTheo's Typesafe Cult
Created by Kevon Young-Reaves ✨⭐✨ on 1/8/2025 in #questions
Does anyone know a good utility to track how much you've coded in a day?
7 replies
TTCTheo's Typesafe Cult
Created by Kevon Young-Reaves ✨⭐✨ on 1/8/2025 in #questions
Does anyone know a good utility to track how much you've coded in a day?
wakatime
7 replies
TTCTheo's Typesafe Cult
Created by xyzmani on 12/31/2024 in #questions
secure API using middleware | NextJS
so I'm kinda stuck. chatgpt is giving out dogshit replies and google just tells me how to secure paths and not APIs routes
5 replies
TTCTheo's Typesafe Cult
Created by xyzmani on 12/31/2024 in #questions
secure API using middleware | NextJS
if I set the middleware to don't allow /api/* then my login doesn't work
5 replies
TTCTheo's Typesafe Cult
Created by xyzmani on 12/31/2024 in #questions
secure API using middleware | NextJS
so I have a API at /api/client/ I don't want anyone to access it unless authorised
5 replies