Next.js Discord

Discord Forum

Vercel simple database

Answered
Greater Scaup posted this in #help-forum
Open in Discord
Greater ScaupOP
Vercel provides options for multiple different database systems.
I only want to store entries of single strings,
I want to be able to add/remove a string to the database or get them all as an array
I don't need SQL, any other datatypes or any objects.
What's the simplest way to get what I want?
Answered by Plott Hound
In that case I’d recommend a Postgres db. If you’re not comfortable with raw queries I’d use an orm like prisma or drizzle
View full answer

6 Replies

Plott Hound
Do you need to write to this store in your app?
If so I’d recommend a simple Postgres from somewhere like supabase or upstash redis. If it’s just a simple source of data you read from you could keep the data in a local file
@Plott Hound Do you need to write to this store in your app?
Greater ScaupOP
Yes, I want to modify this store on API calls
Plott Hound
In that case I’d recommend a Postgres db. If you’re not comfortable with raw queries I’d use an orm like prisma or drizzle
Answer
Plott Hound
You wouldn’t be able to write to a local store since vercel is serverless
Greater ScaupOP
Yes okay thanks!