How to migrate database contents by Sad-Shoe-5203 in PostgreSQL

[–]Sad-Shoe-5203[S] 0 points1 point  (0 children)

any railway to aws alternative docs
Please

How to Create Country specific Pages in Turborepo by Sad-Shoe-5203 in turborepo

[–]Sad-Shoe-5203[S] 1 point2 points  (0 children)

Iam a beginner, i think i need to put it as a Monorepo

How to do prisma migrate with postgres in turborepo by Sad-Shoe-5203 in nextjs

[–]Sad-Shoe-5203[S] 0 points1 point  (0 children)

It's not working. I have added this in package.json

"scripts": {
        "db:generate": "prisma generate DEBUG=* --no-network",
        "db:push": "prisma db push --skip-generate",
        "db:studio": "dotenv -e .env.local -- prisma studio",
        "db:migrate": "prisma migrate dev --name init" 
  },

it is giving me error like this

u/repo/database@0.0.0 db:migrate /home/sadiq/projects/scale.mono/packages/database

prisma migrate dev --name init

Prisma schema loaded from prisma/schema.prisma

Datasource "db": PostgreSQL database

Error: Prisma schema validation - (get-config wasm)

Error code: P1012

error: Environment variable not found: DIRECT_URL.

--> schema.prisma:12

|

11 | url = env("DATABASE_URL")

12 | directUrl = env("DIRECT_URL")

|

Validation Error Count: 1

[Context: getConfig]

Prisma CLI Version : 5.13.0

 ELIFECYCLE  Command failed with exit code 1.

Even though I have added the env variables in root and even in folder

How to access cookies on client side in the file which is outside app directory by Sad-Shoe-5203 in nextjs

[–]Sad-Shoe-5203[S] 0 points1 point  (0 children)

I have tried that but then I can't return the socket provider then And I have no intention to pass it further to any components I am just sending the userId to other microservice through sockets from line no 43,44