{"action":"created","comment":{"url":"https://api.github.com/repos/lukeed/polka/pulls/comments/190359583","pull_request_review_id":122717055,"id":190359583,"diff_hunk":"@@ -0,0 +1,17 @@\n+const polka = require('polka')\n+const next = require('next')\n+\n+const port = parseInt(process.env.PORT, 10) || 3000\n+const dev = process.env.NODE_ENV !== 'production'\n+const app = next({ dev })\n+const handle = app.getRequestHandler()\n+\n+app.prepare().then(() => {\n+  const server = polka()\n+\n+  server.get('*', (req, res) => handle(req, res))","path":"examples/with-nextjs/index.js","position":12,"original_position":12,"commit_id":"017fe806df8b078099a6e88e29e15574775ae266","original_commit_id":"017fe806df8b078099a6e88e29e15574775ae266","user":{"login":"lukeed","id":5855893,"avatar_url":"https://avatars1.githubusercontent.com/u/5855893?v=4","gravatar_id":"","url":"https://api.github.com/users/lukeed","html_url":"https://github.com/lukeed","followers_url":"https://api.github.com/users/lukeed/followers","following_url":"https://api.github.com/users/lukeed/following{/other_user}","gists_url":"https://api.github.com/users/lukeed/gists{/gist_id}","starred_url":"https://api.github.com/users/lukeed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukeed/subscriptions","organizations_url":"https://api.github.com/users/lukeed/orgs","repos_url":"https://api.github.com/users/lukeed/repos","events_url":"https://api.github.com/users/lukeed/events{/privacy}","received_events_url":"https://api.github.com/users/lukeed/received_events","type":"User","site_admin":false},"body":"This can actually be `server.get('*', handle)` since the signatures match.","created_at":"2018-05-23T18:46:17Z","updated_at":"2018-05-23T18:48:02Z","html_url":"https://github.com/lukeed/polka/pull/48#discussion_r190359583","pull_request_url":"https://api.github.com/repos/lukeed/polka/pulls/48","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/lukeed/polka/pulls/comments/190359583"},"html":{"href":"https://github.com/lukeed/polka/pull/48#discussion_r190359583"},"pull_request":{"href":"https://api.github.com/repos/lukeed/polka/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/lukeed/polka/pulls/48","id":190065805,"html_url":"https://github.com/lukeed/polka/pull/48","diff_url":"https://github.com/lukeed/polka/pull/48.diff","patch_url":"https://github.com/lukeed/polka/pull/48.patch","issue_url":"https://api.github.com/repos/lukeed/polka/issues/48","number":48,"state":"open","locked":false,"title":"Added examples","user":{"login":"jerolan","id":11675668,"avatar_url":"https://avatars3.githubusercontent.com/u/11675668?v=4","gravatar_id":"","url":"https://api.github.com/users/jerolan","html_url":"https://github.com/jerolan","followers_url":"https://api.github.com/users/jerolan/followers","following_url":"https://api.github.com/users/jerolan/following{/other_user}","gists_url":"https://api.github.com/users/jerolan/gists{/gist_id}","starred_url":"https://api.github.com/users/jerolan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jerolan/subscriptions","organizations_url":"https://api.github.com/users/jerolan/orgs","repos_url":"https://api.github.com/users/jerolan/repos","events_url":"https://api.github.com/users/jerolan/events{/privacy}","received_events_url":"https://api.github.com/users/jerolan/received_events","type":"User","site_admin":false},"body":"Examples for Next.js and Apollo Server were added","created_at":"2018-05-23T18:29:15Z","updated_at":"2018-05-23T18:48:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7514203bcfd2f524168c9abde32ad7566f9165bf","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/lukeed/polka/pulls/48/commits","review_comments_url":"https://api.github.com/repos/lukeed/polka/pulls/48/comments","review_comment_url":"https://api.github.com/repos/lukeed/polka/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lukeed/polka/issues/48/comments","statuses_url":"https://api.github.com/repos/lukeed/polka/statuses/017fe806df8b078099a6e88e29e15574775ae266","head":{"label":"jerolan:master","ref":"master","sha":"017fe806df8b078099a6e88e29e15574775ae266","user":{"login":"jerolan","id":11675668,"avatar_url":"https://avatars3.githubusercontent.com/u/11675668?v=4","gravatar_id":"","url":"https://api.github.com/users/jerolan","html_url":"https://github.com/jerolan","followers_url":"https://api.github.com/users/jerolan/followers","following_url":"https://api.github.com/users/jerolan/following{/other_user}","gists_url":"https://api.github.com/users/jerolan/gists{/gist_id}","starred_url":"https://api.github.com/users/jerolan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jerolan/subscriptions","organizations_url":"https://api.github.com/users/jerolan/orgs","repos_url":"https://api.github.com/users/jerolan/repos","events_url":"https://api.github.com/users/jerolan/events{/privacy}","received_events_url":"https://api.github.com/users/jerolan/received_events","type":"User","site_admin":false},"repo":{"id":134586118,"name":"polka","full_name":"jerolan/polka","owner":{"login":"jerolan","id":11675668,"avatar_url":"https://avatars3.githubusercontent.com/u/11675668?v=4","gravatar_id":"","url":"https://api.github.com/users/jerolan","html_url":"https://github.com/jerolan","followers_url":"https://api.github.com/users/jerolan/followers","following_url":"https://api.github.com/users/jerolan/following{/other_user}","gists_url":"https://api.github.com/users/jerolan/gists{/gist_id}","starred_url":"https://api.github.com/users/jerolan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jerolan/subscriptions","organizations_url":"https://api.github.com/users/jerolan/orgs","repos_url":"https://api.github.com/users/jerolan/repos","events_url":"https://api.github.com/users/jerolan/events{/privacy}","received_events_url":"https://api.github.com/users/jerolan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jerolan/polka","description":"A micro web server so fast, it'll make you dance! :dancers:","fork":true,"url":"https://api.github.com/repos/jerolan/polka","forks_url":"https://api.github.com/repos/jerolan/polka/forks","keys_url":"https://api.github.com/repos/jerolan/polka/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jerolan/polka/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jerolan/polka/teams","hooks_url":"https://api.github.com/repos/jerolan/polka/hooks","issue_events_url":"https://api.github.com/repos/jerolan/polka/issues/events{/number}","events_url":"https://api.github.com/repos/jerolan/polka/events","assignees_url":"https://api.github.com/repos/jerolan/polka/assignees{/user}","branches_url":"https://api.github.com/repos/jerolan/polka/branches{/branch}","tags_url":"https://api.github.com/repos/jerolan/polka/tags","blobs_url":"https://api.github.com/repos/jerolan/polka/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jerolan/polka/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jerolan/polka/git/refs{/sha}","trees_url":"https://api.github.com/repos/jerolan/polka/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jerolan/polka/statuses/{sha}","languages_url":"https://api.github.com/repos/jerolan/polka/languages","stargazers_url":"https://api.github.com/repos/jerolan/polka/stargazers","contributors_url":"https://api.github.com/repos/jerolan/polka/contributors","subscribers_url":"https://api.github.com/repos/jerolan/polka/subscribers","subscription_url":"https://api.github.com/repos/jerolan/polka/subscription","commits_url":"https://api.github.com/repos/jerolan/polka/commits{/sha}","git_commits_url":"https://api.github.com/repos/jerolan/polka/git/commits{/sha}","comments_url":"https://api.github.com/repos/jerolan/polka/comments{/number}","issue_comment_url":"https://api.github.com/repos/jerolan/polka/issues/comments{/number}","contents_url":"https://api.github.com/repos/jerolan/polka/contents/{+path}","compare_url":"https://api.github.com/repos/jerolan/polka/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jerolan/polka/merges","archive_url":"https://api.github.com/repos/jerolan/polka/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jerolan/polka/downloads","issues_url":"https://api.github.com/repos/jerolan/polka/issues{/number}","pulls_url":"https://api.github.com/repos/jerolan/polka/pulls{/number}","milestones_url":"https://api.github.com/repos/jerolan/polka/milestones{/number}","notifications_url":"https://api.github.com/repos/jerolan/polka/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jerolan/polka/labels{/name}","releases_url":"https://api.github.com/repos/jerolan/polka/releases{/id}","deployments_url":"https://api.github.com/repos/jerolan/polka/deployments","created_at":"2018-05-23T15:01:27Z","updated_at":"2018-05-23T18:36:38Z","pushed_at":"2018-05-23T18:36:36Z","git_url":"git://github.com/jerolan/polka.git","ssh_url":"git@github.com:jerolan/polka.git","clone_url":"https://github.com/jerolan/polka.git","svn_url":"https://github.com/jerolan/polka","homepage":"","size":343,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"lukeed:master","ref":"master","sha":"d96afc54e164d4e7bbb1226e686474597d2edc6d","user":{"login":"lukeed","id":5855893,"avatar_url":"https://avatars1.githubusercontent.com/u/5855893?v=4","gravatar_id":"","url":"https://api.github.com/users/lukeed","html_url":"https://github.com/lukeed","followers_url":"https://api.github.com/users/lukeed/followers","following_url":"https://api.github.com/users/lukeed/following{/other_user}","gists_url":"https://api.github.com/users/lukeed/gists{/gist_id}","starred_url":"https://api.github.com/users/lukeed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukeed/subscriptions","organizations_url":"https://api.github.com/users/lukeed/orgs","repos_url":"https://api.github.com/users/lukeed/repos","events_url":"https://api.github.com/users/lukeed/events{/privacy}","received_events_url":"https://api.github.com/users/lukeed/received_events","type":"User","site_admin":false},"repo":{"id":115081766,"name":"polka","full_name":"lukeed/polka","owner":{"login":"lukeed","id":5855893,"avatar_url":"https://avatars1.githubusercontent.com/u/5855893?v=4","gravatar_id":"","url":"https://api.github.com/users/lukeed","html_url":"https://github.com/lukeed","followers_url":"https://api.github.com/users/lukeed/followers","following_url":"https://api.github.com/users/lukeed/following{/other_user}","gists_url":"https://api.github.com/users/lukeed/gists{/gist_id}","starred_url":"https://api.github.com/users/lukeed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukeed/subscriptions","organizations_url":"https://api.github.com/users/lukeed/orgs","repos_url":"https://api.github.com/users/lukeed/repos","events_url":"https://api.github.com/users/lukeed/events{/privacy}","received_events_url":"https://api.github.com/users/lukeed/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lukeed/polka","description":"A micro web server so fast, it'll make you dance! :dancers:","fork":false,"url":"https://api.github.com/repos/lukeed/polka","forks_url":"https://api.github.com/repos/lukeed/polka/forks","keys_url":"https://api.github.com/repos/lukeed/polka/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lukeed/polka/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lukeed/polka/teams","hooks_url":"https://api.github.com/repos/lukeed/polka/hooks","issue_events_url":"https://api.github.com/repos/lukeed/polka/issues/events{/number}","events_url":"https://api.github.com/repos/lukeed/polka/events","assignees_url":"https://api.github.com/repos/lukeed/polka/assignees{/user}","branches_url":"https://api.github.com/repos/lukeed/polka/branches{/branch}","tags_url":"https://api.github.com/repos/lukeed/polka/tags","blobs_url":"https://api.github.com/repos/lukeed/polka/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lukeed/polka/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lukeed/polka/git/refs{/sha}","trees_url":"https://api.github.com/repos/lukeed/polka/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lukeed/polka/statuses/{sha}","languages_url":"https://api.github.com/repos/lukeed/polka/languages","stargazers_url":"https://api.github.com/repos/lukeed/polka/stargazers","contributors_url":"https://api.github.com/repos/lukeed/polka/contributors","subscribers_url":"https://api.github.com/repos/lukeed/polka/subscribers","subscription_url":"https://api.github.com/repos/lukeed/polka/subscription","commits_url":"https://api.github.com/repos/lukeed/polka/commits{/sha}","git_commits_url":"https://api.github.com/repos/lukeed/polka/git/commits{/sha}","comments_url":"https://api.github.com/repos/lukeed/polka/comments{/number}","issue_comment_url":"https://api.github.com/repos/lukeed/polka/issues/comments{/number}","contents_url":"https://api.github.com/repos/lukeed/polka/contents/{+path}","compare_url":"https://api.github.com/repos/lukeed/polka/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lukeed/polka/merges","archive_url":"https://api.github.com/repos/lukeed/polka/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lukeed/polka/downloads","issues_url":"https://api.github.com/repos/lukeed/polka/issues{/number}","pulls_url":"https://api.github.com/repos/lukeed/polka/pulls{/number}","milestones_url":"https://api.github.com/repos/lukeed/polka/milestones{/number}","notifications_url":"https://api.github.com/repos/lukeed/polka/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lukeed/polka/labels{/name}","releases_url":"https://api.github.com/repos/lukeed/polka/releases{/id}","deployments_url":"https://api.github.com/repos/lukeed/polka/deployments","created_at":"2017-12-22T05:55:41Z","updated_at":"2018-05-23T12:10:03Z","pushed_at":"2018-05-23T18:36:37Z","git_url":"git://github.com/lukeed/polka.git","ssh_url":"git@github.com:lukeed/polka.git","clone_url":"https://github.com/lukeed/polka.git","svn_url":"https://github.com/lukeed/polka","homepage":"","size":343,"stargazers_count":2013,"watchers_count":2013,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":60,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":60,"open_issues":9,"watchers":2013,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lukeed/polka/pulls/48"},"html":{"href":"https://github.com/lukeed/polka/pull/48"},"issue":{"href":"https://api.github.com/repos/lukeed/polka/issues/48"},"comments":{"href":"https://api.github.com/repos/lukeed/polka/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/lukeed/polka/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/lukeed/polka/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lukeed/polka/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/lukeed/polka/statuses/017fe806df8b078099a6e88e29e15574775ae266"}},"author_association":"NONE"}}
{"actor":{"display_login":"lukeed"}}