Skip to content

How to change locale for Vercel Postgres? #5005

Answered by FelixZY
FelixZY asked this question in Help
Discussion options

You must be logged in to vote

Ok, I actually managed to solve it!

What you need to do is:

CREATE DATABASE
  mydb
WITH
  ENCODING 'UTF8'
  LOCALE_PROVIDER icu
  ICU_LOCALE "sv-SE"
  TEMPLATE template0;

Note: Vercel by default uses verceldb rather than mydb in its connection strings. I have not yet found a way to change this so you'll need to go through your secrets and point things right.

Vercel: I would really like a feature to change the target database in the auto-added connection string secrets.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by FelixZY
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
2 participants