Couple options. * One is to have a local DB (I keep this alias in my bashrc: `docker run -d -e POS

Couple options.
  • One is to have a local DB (I keep this alias in my bashrc: docker run -d -e POSTGRES_PASSWORD=password -p 5433:5432 postgres:16 -c ssl=on -c ssl_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem -c ssl_key_file=/etc/ssl/private/ssl-cert-snakeoil.key)
  • Use
    wrangler dev --remote
    which spawns an ephemeral Worker and will behave like a normal Worker. Still wants a
    localConnectionString
    but will use the Hyperdrive binding you give it instead.
  • Use a remote DB that allows connections with
    sslmode=disable
    (this is probably the hardest to mange given I don't think Supabase supports that)
Was this page helpful?