Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added examples #48

Merged
merged 7 commits into from May 23, 2018
Merged

Added examples #48

merged 7 commits into from May 23, 2018

Conversation

jerolan
Copy link
Contributor

@jerolan jerolan commented May 23, 2018

Examples for Next.js and Apollo Server were added

@jerolan jerolan changed the title Added example Added examples May 23, 2018
Copy link
Owner

@lukeed lukeed left a comment

Choose a reason for hiding this comment

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

Super cool, thanks~! Left a few nitpicks that would be awesome to address.

},
"dependencies": {
"next": "latest",
"polka": "0.2.3",
Copy link
Owner

Choose a reason for hiding this comment

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

Let's bump this to latest as well 👍

@@ -0,0 +1,52 @@
const polka = require('polka')
const bodyParser = require('body-parser')
Copy link
Owner

Choose a reason for hiding this comment

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

Let's import it as const { json } = require('body-parser') then update the usage below too

app.prepare().then(() => {
const server = polka()

server.get('*', (req, res) => handle(req, res))
Copy link
Owner

Choose a reason for hiding this comment

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

This can actually be server.get('*', handle) since the signatures match.

@lukeed
Copy link
Owner

lukeed commented May 23, 2018

I'll actually make the changes really quick, you shouldn't have to worry about it 😄

@lukeed lukeed merged commit a7a38c4 into lukeed:master May 23, 2018
@lukeed
Copy link
Owner

lukeed commented May 23, 2018

Thank you~! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants