1. 11 Feb, 2019 4 commits
  2. 10 Feb, 2019 9 commits
  3. 08 Feb, 2019 3 commits
  4. 07 Feb, 2019 1 commit
  5. 04 Feb, 2019 1 commit
  6. 03 Feb, 2019 5 commits
  7. 01 Feb, 2019 2 commits
  8. 31 Jan, 2019 3 commits
    • Sultan Tarimo's avatar
      Load ErrorComponent dynamically (#6171) · 1a416b68
      Sultan Tarimo authored
      Closes #6152.
      
      - Only dynamically load /_error.js when an exception occurs.
      - Fix websocket “/_error.js” ping oddity.
      1a416b68
    • Resi Respati's avatar
      [with-typescript] Improved intial props examples, added example detail (#6165) · 8fdb1339
      Resi Respati authored
      I've just thought of a way to improve the initial props page by adding
      an example for a list/detail page structure. To do that, I've created a
      separate `/detail` page, and a mock API which calls data from the array
      we made on the previous PR.
      
      A ListDetail component is created as an example for displaying detail.
      
      Page structure is also cleaned up. Should I go ahead and add an example
      on how to style with styled-jsx + its TS declarations? I might decide to
      do it within this week anyway.
      8fdb1339
    • Petr Messner's avatar
      Update with-relay-modern and with-relay-modern-server-express (#6182) · 968475fb
      Petr Messner authored
      Update examples with-relay-modern and with-relay-modern-server-express to react-relay 2.0.0
      
      - react-relay has started to use new Context API instead of Legacy Context API
      - add `parseInt` because graphql 14.0.0 introduced stricter scalar value coercion
      
      Closes #6157
      968475fb
  9. 30 Jan, 2019 1 commit
  10. 29 Jan, 2019 4 commits
  11. 28 Jan, 2019 1 commit
    • Marcin Czenko's avatar
      Updates with-semantic-ui example (#6158) · 14754915
      Marcin Czenko authored
      I tried to make the example a bit more descriptive. I changed `publicPath` in `now.config.js` to be `/_next/static/`, in place of `./`, and `outputPath` to `static/` in place of `static/css/`.  The reason is that the webpack config will still fallback to `file-loader` for any content that is imported by the user and which is bigger that `8192` bytes. I think this content should not land in the css folder, which should probably stay css specific.
      
      Moreover, for user content, like regular images, the former settings will fail.
      
      If you have this:
      
      ```javascript
      import LargeFile from './LargeFile.png'
      ```
      
      it would be placed in `static/css/` but its url would resolve to `<base-url>/LargeFile.png`, which will fail. It works for semantic-ui alone, because `@zeit/next-css` will put the styles in `static/css/` and so `publicPath` of `./` would work just fine.
      
      Putting assets in `static/` and setting `publicPath` to '/_next/static/' will resolve correctly for both semantic-ui related assets as well as for regular user assets.
      
      I hope I am not mixing something up. I tested it locally and in serverless deployment, and this looks pretty consistent.
      14754915
  12. 27 Jan, 2019 4 commits
  13. 26 Jan, 2019 2 commits