1. 29 7月, 2020 1 次提交
  2. 28 7月, 2020 2 次提交
  3. 15 7月, 2020 1 次提交
  4. 13 7月, 2020 1 次提交
  5. 07 7月, 2020 1 次提交
    • J
      Fix basepath browser back/forward issue (#14861) · 3623d444
      Jan Potoms 提交于
      Discovered while working on https://github.com/vercel/next.js/pull/14848
      
      when asPath is the same but href is different it should use `replaceState` instead of `pushState`, so that browser back/forward behavior is preserved. Currently it's comparing a path that includes basepath with one that excludes  it, so `pushState` is always used. This makes sure the behavior is the same as when running next.js without a basepath
      3623d444
  6. 01 7月, 2020 2 次提交
  7. 23 6月, 2020 1 次提交
  8. 11 6月, 2020 1 次提交
  9. 02 6月, 2020 1 次提交
  10. 27 5月, 2020 2 次提交
  11. 19 5月, 2020 1 次提交
  12. 13 5月, 2020 1 次提交
  13. 30 4月, 2020 1 次提交
  14. 14 4月, 2020 2 次提交
  15. 11 4月, 2020 1 次提交
  16. 02 4月, 2020 1 次提交
  17. 31 3月, 2020 3 次提交
  18. 26 3月, 2020 1 次提交
    • J
      Add initial support for new env handling (#10525) · d8155b22
      JJ Kasper 提交于
      * Add initial support for new env config file
      
      * Fix serverless processEnv call when no env is provided
      
      * Add missing await for test method
      
      * Update env config to .env.json and add dotenv loading
      
      * ncc dotenv package
      
      * Update type
      
      * Update with new discussed behavior removing .env.json
      
      * Update hot-reloader createEntrypoints
      
      * Make sure .env is loaded before next.config.js
      
      * Add tests for all separate .env files
      
      * Remove comments
      
      * Add override tests
      
      * Add test for overriding env vars based on local environment
      
      * Add support for .env.test
      
      * Apply suggestions from code review
      Co-Authored-By: NJoe Haddad <joe.haddad@zeit.co>
      
      * Use chalk for env loaded message
      
      * Remove constant as it’s not needed
      
      * Update test
      
      * Update errsh, taskr, and CNA template ignores
      
      * Make sure to only consider undefined missing
      
      * Remove old .env ignore
      
      * Update to not populate process.env with loaded env
      
      * Add experimental flag and add loading of global env values
      Co-authored-by: NTim Neutkens <timneutkens@me.com>
      Co-authored-by: NJoe Haddad <joe.haddad@zeit.co>
      d8155b22
  19. 20 3月, 2020 1 次提交
  20. 13 3月, 2020 1 次提交
  21. 10 3月, 2020 1 次提交
    • J
      Verify GS(S)P Serializability (#10857) · 8443a809
      Joe Haddad 提交于
      * Verify GS(S)P Serializability
      
      * Add support for cyclic refs
      
      * Add unit tests
      
      * Test for error in development mode
      
      * Fix prerender preview tests
      
      * Fix gssp preview tests
      
      * fix 2x test cases
      
      * Add desired test
      
      * fix some more tests
      
      * Fix route manifest expect
      
      * Fix test expects
      
      * Test that `getServerSideProps` does not error in production
      
      * Test that getStaticProps is not checked in production
      
      * Test serialization check during build
      
      * Fix export detection for serverless
      
      * Update test/unit/is-serializable-props.test.js
      Co-Authored-By: NJJ Kasper <jj@jjsweb.site>
      Co-authored-by: NJJ Kasper <jj@jjsweb.site>
      8443a809
  22. 03 3月, 2020 1 次提交
  23. 28 2月, 2020 2 次提交
  24. 27 2月, 2020 1 次提交
  25. 25 2月, 2020 1 次提交
  26. 22 2月, 2020 1 次提交
  27. 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
  28. 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
  29. 03 2月, 2020 1 次提交
  30. 01 2月, 2020 1 次提交
  31. 28 1月, 2020 1 次提交
    • J
      Add initial support for unstable_getServerProps (#10077) · c24daa21
      JJ Kasper 提交于
      * Add support for unstable_getServerProps
      
      * Apply suggestions from review
      
      * Add no-cache header and update types
      
      * Revert sharing of load-components type
      
      * Add catchall test and update routes-manifest field
      
      * Update header check
      
      * Update to pass query for getServerProps data requests
      
      * Update to not cache getServerProps requests
      
      * Rename server side props identifier
      
      * Update to nest props for getServerProps
      
      * Add no-cache header in serverless-loader also
      
      * Update to throw error for mixed SSG/serverProps earlier
      
      * Add comment explaining params chosing in serverless-loader
      
      * Update invalidKeysMsg to return a string and inline throwing
      
      * Inline throwing mixed SSG/serverProps error
      
      * Update setting cache header in serverless-loader
      
      * Add separate getServerData method in router
      
      * Update checkIsSSG -> isDataIdentifier
      
      * Refactor router getData back to ternary
      
      * Apply suggestions to build/index.ts
      
      * drop return
      
      * De-dupe extra escape regex
      
      * Add param test
      c24daa21
  32. 25 1月, 2020 2 次提交