NeonN
Neon17mo ago
6 replies
constitutional-coral

Don't insert data on database with nextjs

Hello guys this query is working on nextjs? I execute but don't create table :/ and don't display error

when i use this Error: relation "short_link_free" does not exist await sql(
'INSERT INTO short_link_free(origin, redirect, created, ip, country, activate) VALUES ($1,$2,$3,$4,$5,$6)',
[origin, redirect, created, getIp, getCountry, activate]
) but the table is created

PD: i use import { neon } from '@neondatabase/serverless'
image.png
image.png
Was this page helpful?