Skip to content

Commit 22ed96a

Browse files
committed
chore: cleanup env args
1 parent 270231f commit 22ed96a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

graphile.config.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import { PgAggregatesPreset } from "@graphile/pg-aggregates";
99
import { PgSimplifyInflectionPreset } from "@graphile/simplify-inflection";
1010
import { PgManyToManyPreset } from '@graphile-contrib/pg-many-to-many';
1111

12+
const { DATABASE_URL, DATABASE_SCHEMAS } = process.env
13+
1214
console.debug('PostGraphileConnectionFilterPreset', PostGraphileConnectionFilterPreset)
1315

1416
const preset = {
@@ -46,8 +48,8 @@ const preset = {
4648
},
4749
pgServices: [
4850
makePgService({
49-
connectionString: process.env.DATABASE_URL,
50-
schemas: process.env.DATABASE_SCHEMAS?.split(',') ?? ['public'],
51+
connectionString: DATABASE_URL,
52+
schemas: DATABASE_SCHEMAS?.split(',') ?? ['public'],
5153
pubsub: true
5254
})
5355
],

0 commit comments

Comments
 (0)