{"action":"created","issue":{"url":"https://api.github.com/repos/Metnew/suicrux/issues/165","repository_url":"https://api.github.com/repos/Metnew/suicrux","labels_url":"https://api.github.com/repos/Metnew/suicrux/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/Metnew/suicrux/issues/165/comments","events_url":"https://api.github.com/repos/Metnew/suicrux/issues/165/events","html_url":"https://github.com/Metnew/suicrux/issues/165","id":290374587,"number":165,"title":"NextJS integration","user":{"login":"cyrus-za","id":1845861,"avatar_url":"https://avatars1.githubusercontent.com/u/1845861?v=4","gravatar_id":"","url":"https://api.github.com/users/cyrus-za","html_url":"https://github.com/cyrus-za","followers_url":"https://api.github.com/users/cyrus-za/followers","following_url":"https://api.github.com/users/cyrus-za/following{/other_user}","gists_url":"https://api.github.com/users/cyrus-za/gists{/gist_id}","starred_url":"https://api.github.com/users/cyrus-za/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyrus-za/subscriptions","organizations_url":"https://api.github.com/users/cyrus-za/orgs","repos_url":"https://api.github.com/users/cyrus-za/repos","events_url":"https://api.github.com/users/cyrus-za/events{/privacy}","received_events_url":"https://api.github.com/users/cyrus-za/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-01-22T07:39:00Z","updated_at":"2018-02-20T15:42:17Z","closed_at":null,"author_association":"NONE","body":"I would love to get a example of how to use this along with nextjs. Their semantic-ui example is 9 months old and is throwing errors for me. I also like all the extra goodies in this package."},"comment":{"url":"https://api.github.com/repos/Metnew/suicrux/issues/comments/367018534","html_url":"https://github.com/Metnew/suicrux/issues/165#issuecomment-367018534","issue_url":"https://api.github.com/repos/Metnew/suicrux/issues/165","id":367018534,"user":{"login":"malixsys","id":664650,"avatar_url":"https://avatars1.githubusercontent.com/u/664650?v=4","gravatar_id":"","url":"https://api.github.com/users/malixsys","html_url":"https://github.com/malixsys","followers_url":"https://api.github.com/users/malixsys/followers","following_url":"https://api.github.com/users/malixsys/following{/other_user}","gists_url":"https://api.github.com/users/malixsys/gists{/gist_id}","starred_url":"https://api.github.com/users/malixsys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malixsys/subscriptions","organizations_url":"https://api.github.com/users/malixsys/orgs","repos_url":"https://api.github.com/users/malixsys/repos","events_url":"https://api.github.com/users/malixsys/events{/privacy}","received_events_url":"https://api.github.com/users/malixsys/received_events","type":"User","site_admin":false},"created_at":"2018-02-20T15:42:17Z","updated_at":"2018-02-20T15:42:17Z","author_association":"NONE","body":"Serves `nextJS` perfectly and allows adding an API easily...\r\n```\r\n// server.js\r\nimport { NestFactory } from '@nestjs/core';\r\nimport { ApplicationModule } from './app.module';\r\nimport { GlobalExceptionFilter } from './app.exceptions';\r\nimport * as express from 'express';\r\nimport * as nextjs from 'next';\r\nimport * as helmet from 'helmet';\r\nimport * as cookieParser from 'cookie-parser';\r\nimport * as bodyParser from 'body-parser';\r\n\r\ndeclare const process;\r\n\r\nconst port = process.env.PORT ? Number(process.env.PORT) : 3000;\r\nconst dev = process.env.NODE_ENV !== 'production';\r\n\r\nconst next = nextjs({ dev });\r\nconst handle = next.getRequestHandler();\r\n\r\nnext.prepare()\r\n  .then(async() => {\r\n    const server = express();\r\n\r\n    const app = await NestFactory.create(ApplicationModule, server);\r\n\r\n    app.useGlobalFilters(new GlobalExceptionFilter());\r\n\r\n    app.setGlobalPrefix('api');\r\n\r\n    app.use(helmet());\r\n\r\n    app.use(cookieParser());\r\n\r\n    app.use(bodyParser.json({ limit: '50mb' }));\r\n\r\n    app.use(bodyParser.urlencoded({ extended: false }));\r\n\r\n    await app.init();\r\n\r\n    server.get('*', (req, res) => handle(req, res));\r\n\r\n    await app.listen(port);\r\n\r\n    console.log(`> Ready on http://localhost:${port}`);\r\n  });\r\n```"}}
{"actor":{"display_login":"malixsys"}}