Skip to content

Commit 46fccfe

Browse files
committed
enhanceGraphiql
1 parent 63bd09e commit 46fccfe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/postgraphileOptions.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
exports.options = {
22
dynamicJson: true,
3+
cors: true,
4+
jwtSecret: process.env.JWT_SECRET || String(Math.random()),
35
graphiql: false,
46
externalUrlBase: '/default',
57

6-
78
/* If you want to enable GraphiQL, you must use `externalUrlBase` so PostGraphile
89
* knows where to tell the browser to find the assets. Doing this is
910
* strongly discouraged, you should use an external GraphQL client instead.
1011
1112
externalUrlBase: '/default',
1213
graphiql: true,
14+
enhanceGraphiql: true,
1315
graphqlRoute: '/',
1416
graphiqlRoute: '/graphiql',
1517
*/
16-
cors: true,
17-
jwtSecret: process.env.JWT_SECRET || String(Math.random()),
1818
};

0 commit comments

Comments
 (0)