Skip to content

Commit 74bff14

Browse files
committed
fix: use new config
1 parent 4c72404 commit 74bff14

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/voyager.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ import * as graphqlHTTP from 'express-graphql'
1313
import * as opn from 'opn'
1414
import { buildSchema } from 'graphql'
1515

16-
exports.handler = function (context, argv) {
17-
const schema = buildSchema(context.getProjectConfig().getSchemaSDL());
16+
exports.handler = async function (context, argv) {
17+
const config = await context.getProjectConfig()
18+
const schema = buildSchema(config.getSchemaSDL())
1819

1920
const app = express()
2021

0 commit comments

Comments
 (0)