How is this not illegal
This beautiful tweet by Dan Abramov brought to life.
Setting it up
- Create a Vercel Postgres database and link it to your project
- Go to its settings and copy the
psql
command - Add
-f sql/init.sql
like so to populate the database with some data:psql "postgres://{user}:{password}@{name}.{location}.postgres.vercel-storage.com:5432/verceldb" -f init.sql