Skip to content

Commit

Permalink
Use ./src instead of ./pkg in Example
Browse files Browse the repository at this point in the history
Should allow for the example to be built and deployed alongside the docs.
  • Loading branch information
Saeris committed Aug 20, 2020
1 parent 13e6304 commit ba6c588
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion api/example.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApolloServer } from "../pkg";
import { ApolloServer } from "../src";

// Construct a schema, using GraphQL schema language
const typeDefs = `
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
},
"scripts": {
"start": "vercel dev",
"build": "yarn build:lib && yarn build:docs",
"build:lib": "pika build",
"build": "pika build",
"build:docs": "fiddly",
"typecheck": "tsc --noEmit",
"lint": "eslint ./src/**/*.{js,ts}",
Expand Down
3 changes: 1 addition & 2 deletions vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"scope": "saeris",
"functions": {
"api/example.ts": {
"maxDuration": 5,
"includeFiles": "./pkg"
"maxDuration": 5
}
}
}

1 comment on commit ba6c588

@vercel
Copy link

@vercel vercel bot commented on ba6c588 Aug 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.