fix(create-medusa-app): set the database host and port explicitely (#7637)

* pass host and port explicitely

* set AUTH_CORS in env
This commit is contained in:
Shahed Nasser
2024-06-06 18:26:06 +03:00
committed by GitHub
parent a62a8be016
commit fa0c7dfbb5
3 changed files with 15 additions and 2 deletions

View File

@@ -1,11 +1,16 @@
import pg from "pg"
const { Client } = pg
export const DEFAULT_HOST = "localhost"
export const DEFAULT_PORT = 5432
type PostgresConnection = {
user?: string
password?: string
connectionString?: string
database?: string
host?: string
port?: number
}
export default async (connect: PostgresConnection) => {