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:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user