All Questions
Tagged with vercel postgresql
64
questions
0
votes
2
answers
47
views
Doing a bulk update in Vercel Postgres by dynamically building query
I have a simple table in Vercel Postgres:
export const sets = createTable("card_table", {
id: varchar("id").primaryKey(),
info: jsonb("info"),
});
I have populated ...
1
vote
0
answers
10
views
deployment error in my nexjs application with Prisma orm
during the deployment of my application on Vercel, at the construction stage, I receive the error shown in the attached image.
I've also associated the package.json file.
{
"name": "...
0
votes
0
answers
24
views
ImproperlyConfigured` Error When Deploying Django to Vercel with Supabase PostgreSQL
I'm currently trying to deploy my Django project to Vercel, using Supabase as the PostgreSQL database provider. I have separated my settings into base.py, development.py, and production.py to manage ...
0
votes
0
answers
36
views
cannot access vercel/postgres database with sql
i have a postresql db deployed on my vercel account. i used to be able to manage it with sql commands (import { sql } from '@vercel/postgres'). but now, even tough i connected it to the db and pulled ...
0
votes
0
answers
16
views
i cannot insert data into my postgreSQL db with Prisma Orm
i am working on a next.js web application. i am using vercel, postgreSQL and prisma. this is my prisma schema:
model entry {
no Int @id @default(autoincrement())
content String
cretedAt DateTime ...
-1
votes
1
answer
38
views
How to connect postgresql vercel in navicat
enter image description here
enter image description here
ERROR: The endpoint ID is not specified. Either upgrade the Postgres client library (libpq) for SNI support or pass the endpoint ID (the first ...
0
votes
0
answers
84
views
Error: Event handlers cannot be passed to Client Component props
I am using NextJS version 14 with PostgreSQL vercel
And here is my component:
src/app/dashboard/admin/categories/page.tsx
const Page = () => {
const onHandleLevelCategoryChange = (e: ChangeEvent&...
0
votes
0
answers
103
views
@prisma/client did not initialize yet. Please run "prisma generate" and try to import it again. getting this error when deploying to vercel
I was using Prisma for my postgresql db.
Everything was working fine until i started promoting to Vercel.
so whenever i am trying to import Prisma to update something in the code from the prisma.js ...
0
votes
0
answers
47
views
Nextjs @vercel/postgres gives VercelPostgresError - 'missing_connection_string'
I am using @vercel/postgres for using database operations in a Nextjs project. When I try to fetch rows from the database I get no errors but when I try to insert a value It gives the following error:
...
0
votes
0
answers
49
views
How to use one database for two projects or more in vercel
I have build two project using nextjs and I have already hosted the first one using vercel and now when I tried to host the second one I have found that vercel allow for creation of only one database ...
0
votes
0
answers
52
views
Select objects by list id
How can I query a list of objects by list Id in @vercel/postgres?
I tried:
const dataOTP = await sql<OTP>`
SELECT *
FROM otps
WHERE id IN (${listOTPId.join(", ")})
...
0
votes
0
answers
21
views
when i click submit in the page the info i login in the page doesn't insert in the database i am using next js and vercel
I have been working in this code for almost three days I'm really in my end wits
when i write the code and sign the form data in code sheet and save it work but when i do it like this it doesn't
this ...
0
votes
0
answers
89
views
Syntax Error with @vercel/postgres Template Literal When Interpolating Values
I'm trying to use the @vercel/postgres library in my Next.js API route to execute a SQL query with interpolated values, but I'm encountering a "syntax error at or near $1" error. Here's my ...
0
votes
1
answer
162
views
NextJS vercel/postgres DB query
I have attached the root cause files here
I want to fetch the userrole of the table users and it ain't working via its session, after the user has loggedIn using his email & password. After the ...
0
votes
0
answers
28
views
Issues with Data Insertion in Next.js Client Component: Seeking Assistance with Vercel PostgreSQL Integration
I'm currently developing a website using Next.js 14, React.js, and Vercel PostgreSQL. Users can create and edit content on the site.
I've successfully implemented a list page to display the contents, ...