1. 04 3月, 2020 2 次提交
  2. 03 3月, 2020 1 次提交
    • J
      Prefetch SSG Data (#10127) · 990eda2c
      Joe Haddad 提交于
      * Prefetch SSG Data
      
      * Update packages/next/client/page-loader.js
      Co-Authored-By: NJJ Kasper <jj@jjsweb.site>
      
      * Revert router.ts
      
      * Revert link.tsx
      
      * undo change
      
      * mimmic existing
      
      * simplify
      
      * Prefetch href and asPath
      
      * fix load
      
      * dedupe prefetchAs
      
      * Inject script tag on hover
      
      * comment prefetchAs
      
      * minify code
      
      * introduce lazy files
      
      * Add some breathing room
      
      * correct default type
      
      * Prefetch non-dynamic data
      
      * Prefetch dynamic route data
      
      * Fix size test
      
      * Humanize code
      
      * add tests
      
      * Disable code
      
      * Only generate modern version in modern mode
      
      * Extract function helper
      
      * add comments
      
      * Filter out dynamic route to simplify manifest size
      
      * add test
      Co-authored-by: NJJ Kasper <jj@jjsweb.site>
      990eda2c
  3. 02 3月, 2020 3 次提交
  4. 01 3月, 2020 2 次提交
  5. 29 2月, 2020 2 次提交
  6. 28 2月, 2020 2 次提交
  7. 27 2月, 2020 2 次提交
    • J
      Ability to Disable SSG Fallback (#10701) · 47ff1eb9
      Joe Haddad 提交于
      * Ability to Disable SSG Fallback
      
      * Throw error when value is missing
      
      * Fix existing tests
      
      * Adjust error message
      
      * Do not render fallback at build time for `fallback: false` page
      
      * Fix existing fallback behavior
      
      * fix build
      
      * fix version
      
      * fix some tests
      
      * Fix last test
      
      * Add docs for get static paths
      
      * Add explicit mode tests
      
      * test for fallback error message
      47ff1eb9
    • J
      Update url prop handling for pages with new data methods (#10653) · 395714a4
      JJ Kasper 提交于
      * Make sure to show error when url prop is returned for a page
      
      * Update test and handle undefined pageProps
      
      * Handle empty props
      
      * Apply suggestions from code review
      Co-Authored-By: NTim Neutkens <tim@timneutkens.nl>
      
      * Update tests
      
      * Update to not add url prop for SSG/SSP pages
      
      * Update errsh for reserved prop
      
      * Update errsh wording some more
      
      * Update tests and to warn instead of error
      
      * Update reserved prop warning
      
      * Include page in url prop warning
      Co-authored-by: NTim Neutkens <tim@timneutkens.nl>
      Co-authored-by: NJoe Haddad <timer150@gmail.com>
      395714a4
  8. 25 2月, 2020 1 次提交
  9. 24 2月, 2020 1 次提交
  10. 22 2月, 2020 2 次提交
  11. 21 2月, 2020 3 次提交
  12. 20 2月, 2020 2 次提交
  13. 19 2月, 2020 1 次提交
  14. 18 2月, 2020 4 次提交
  15. 16 2月, 2020 1 次提交
  16. 15 2月, 2020 1 次提交
  17. 14 2月, 2020 1 次提交
  18. 13 2月, 2020 3 次提交
  19. 12 2月, 2020 1 次提交
    • J
      SSG Preview Mode (#10459) · 3cb34983
      Joe Haddad 提交于
      * checkpoint: api impl
      
      * Add support for tryGetPreviewData
      
      * snapshot: server(less) support
      
      * Add X-Prerender-Bypass-Mode header support
      
      * Pass preview data to getStaticProps call
      
      * add TODO
      
      * setPreviewData
      
      * 100k iterations
      
      * Handle jwt error
      
      * Write out preview values
      
      * forgot file
      
      * set preview props
      
      * Send preview props
      
      * add preview props
      
      * Pass around more data
      
      * update yarn lock
      
      * Fail on Invalid Prerender Manifest
      
      * Make Missing Prerender Manifest Fatal
      
      * fix ts errors
      
      * fix test
      
      * Fix setting cookies + maxage
      
      * Secure is not needed as we encrypt necessary data
      
      * Set on domain root
      
      * Set cookie max ages
      
      * Render a fallback on-demand for non-dynamic pages
      
      * Test preview mode
      
      * remove old build
      
      * remove snapshots
      
      * Add serverless tests
      
      * use afterAll
      
      * Remove object assigns
      
      * fix cookie spread
      
      * add comment
      3cb34983
  20. 11 2月, 2020 2 次提交
  21. 08 2月, 2020 2 次提交
  22. 07 2月, 2020 1 次提交
    • J
      Add initial SSG fallback handling (#10424) · 3099f088
      JJ Kasper 提交于
      * Add initial SSG fallback handling
      
      * Remove extra changes and update fallback handling
      
      * Remove extra timeout for testing
      
      * Update SSG tests in dynamic-routing suite
      
      * Add racing to decide between rendering fallback and data
      
      * Update size-limit test
      
      * Update comment
      
      * Make sure to follow correct route change order
      
      * Make comment more verbose for racing
      
      * Revert getStaticData to only return Promise
      
      * Make sure to update URL on fallback
      
      * Add retrying for data, de-dupe initial fallback request, and merge fallback replace
      
      * Update to add preload for fallback pages data
      
      * Add test for data preload link
      
      * Use pre-built fallback in production mode
      
      * Remove preload link for fallback from _document
      
      * Update to make sure fallback is rendered correctly for serverless
      3099f088