i'm trying to connect to vercel with aws postgres db
I've created an instance of free tier rds
and i got endpoint
so this is my server code
const connection = await createConnection({
type: 'postgres',
url: process.env.DATABASE_URL,
logging: false,
synchronize: false,
entities: [
User,
],
});
so my main question is how to create url
I've tried DATABASE_URL=postgresql://user:password@my aws endpoint:5432/my aws database name
and not worked vercel error said
ERROR : Task timed out after 10.01 seconds
What did I do wrong?