1. 19 5月, 2020 2 次提交
  2. 02 5月, 2020 1 次提交
  3. 14 4月, 2020 1 次提交
    • J
      Add basePath in link component and add/remove it consistently (#9988) · d3e308a7
      JJ Kasper 提交于
      * Add basePath in link component and add/remove it consistently
      
      * Update to not use regex for delBasePath
      
      * Expose addBasePath as router method
      
      * Revert "Expose addBasePath as router method"
      
      This reverts commit 40fed596195c6affabf837e42d472452768e13a3.
      
      * Expose basePath as router field
      
      * Apply suggestion
      
      * Expose basePath as router field
      
      * remove un-used vars
      
      * Update externals
      
      * Apply lint fix
      
      * Update size-limit test
      
      * Update prefetch
      d3e308a7
  4. 31 3月, 2020 3 次提交
  5. 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
  6. 25 3月, 2020 2 次提交
  7. 24 3月, 2020 1 次提交
  8. 22 3月, 2020 1 次提交
  9. 15 2月, 2020 1 次提交
  10. 06 2月, 2020 1 次提交
  11. 03 2月, 2020 1 次提交
  12. 16 1月, 2020 1 次提交
  13. 15 1月, 2020 1 次提交
  14. 09 1月, 2020 1 次提交
  15. 14 12月, 2019 2 次提交
    • J
      Add support for exporting from serverless build (#9744) · 6fcb6230
      JJ Kasper 提交于
      * Add support for exporting from serverless build
      
      * Add more tests
      
      * Update syntax
      
      * Dont add dynamic params in worker
      
      * Update amphtml rel for serverless tests
      
      * Update tests again
      
      * Update dynamic params populating
      
      * Fix params parsing
      
      * Pass params separately
      6fcb6230
    • J
      Emit Static Export Intent (#9737) · 62a6ece4
      Joe Haddad 提交于
      * Emit Static Export Intent
      
      * Remove the old export detail on rebuild
      
      * Add test cases
      
      * fix export
      
      * Add a resolve return
      62a6ece4
  16. 04 12月, 2019 1 次提交
  17. 26 11月, 2019 1 次提交
  18. 22 11月, 2019 1 次提交
  19. 09 11月, 2019 1 次提交
  20. 01 11月, 2019 1 次提交
  21. 29 10月, 2019 1 次提交
    • C
      Disable worker_threads by default for firebase compatibility (#9199) · 14ed8675
      Christoph Tavan 提交于
      * Pass config.experimental.cpus to export during build
      
      Currently, there is no way of specifying the number of worker threads of
      `next export` when run as part of `next build`.
      
      I suggest a sane default should be to just use the same amount of
      workers that were used during the build process which currently seems to
      be configured through `config.experimental.cpus`.
      
      This setting is already respected in the two other places where
      jest-workers are in use: The TerserPlugin and the staticCheckWorkers in
      `next build`.
      
      * Only enable worker threads if there is more than 1 worker
      
      Multiple worker threads can cause problems when certain dependencies are
      being used, see e.g. https://github.com/zeit/next.js/issues/7894
      
      This patch allows disabling of worker threads by setting
      `config.experimental.cpus = 1`.
      
      The benefit of spawning 1 worker thread, if there is any at all, should
      very limited anyways, so the workload can just as well be processed in
      the main thread.
      
      * Disable parallel build for firebase authentication example
      
      * Add integration test to cover #7894
      
      * Rename test suite and add worker_threads config
      
      * Disable worker_threads by default
      
      * Update index.test.js
      
      * Use workerThreads config for TerserPlugin
      
      * Update to use workerThreads config in
      TerserPlugin for consistency
      
      * Disable node 12 specific test
      14ed8675
  22. 23 10月, 2019 1 次提交
  23. 11 10月, 2019 2 次提交
  24. 06 10月, 2019 1 次提交
    • J
      De-experimentalize the `public/` folder (#8661) · e2d713f9
      JJ Kasper 提交于
      * Remove experimental.publicDirectory config
      
      * Error when public is set as an output dir
      
      * Remove experimental.publicDirectory checks
      
      * Update publicFiles checking in next build
      e2d713f9
  25. 04 10月, 2019 1 次提交
  26. 03 10月, 2019 1 次提交
    • J
      Use Better Telemetry Directory (#8942) · 50bd10f5
      Joe Haddad 提交于
      * Use Better Telemetry Directory
      So, as it turns out, storing in `node_modules` is a bad idea.
      
      Both npm and Yarn will remove additional files when you run `npm install` or `yarn install`.
      
      Instead, we'll store this inside of Next.js' `distDir`. This should also be cached by users, if it's not, it probably won't be any worse as compared to `node_modules`.
      
      * Fix directory name
      
      * Fix build setup
      
      * Record when export session is started
      
      * Move more into branch
      50bd10f5
  27. 02 10月, 2019 1 次提交
  28. 25 9月, 2019 1 次提交
    • J
      SPR follow ups (#8846) · 2ae475e0
      JJ Kasper 提交于
      * Add revalidate header and error when invalid
      object from getStaticProps
      
      * Make sprCache no-op in dev mode
      
      * Update packages/next/next-server/server/next-server.ts
      
      * Update tests for fixes
      
      * Update getStaticProps error and add test
      
      * Update manifest test
      
      * Add validating revalidate value
      
      * Apply suggestions from code review
      Co-Authored-By: NJoe Haddad <joe.haddad@zeit.co>
      
      * Change from error to warning high revalidate value
      2ae475e0
  29. 24 9月, 2019 1 次提交
    • J
      Add experimental SPR support (#8832) · 85e720a0
      JJ Kasper 提交于
      * initial commit for SPRv2
      
      * Add initial SPR cache handling
      
      * update SPR handling
      
      * Implement SPR handling in render
      
      * Update tests, handle caching with serverless next
      start, add TODOs, and update manifest generating
      
      * Handle no prerender-manifest from not being used
      
      * Fix url.parse error
      
      * Apply suggestions from code review
      Co-Authored-By: NJoe Haddad <joe.haddad@zeit.co>
      
      * Replace set with constants in next-page-config
      
      * simplify sprStatus.used
      
      * Add error if getStaticProps is used with getInitialProps
      
      * Remove stale TODO
      
      * Update revalidate values in SPR cache for non-seeded routes
      
      * Apply suggestions from code review
      
      * Remove concurrency type
      
      * Rename variable for clarity
      
      * Add copying prerender files during export
      
      * Add comment for clarity
      
      * Fix exporting
      
      * Update comment
      
      * Add additional note
      
      * Rename variable
      
      * Update to not re-export SPR pages from build
      
      * Hard navigate when fetching data fails
      
      * Remove default extension
      
      * Add brackets
      
      * Add checking output files to prerender tests
      
      * Adjust export move logic
      
      * Clarify behavior of export aggregation
      
      * Update variable names for clarity
      
      * Update tests
      
      * Add comment
      
      * s/an oxymoron/contradictory/
      
      * rename
      
      * Extract error case
      
      * Add tests for exporting SPR pages and update
      /_next/data endpoint to end with .json
      
      * Relocate variable
      
      * Adjust route building
      
      * Rename to unstable
      
      * Rename unstable_getStaticParams
      
      * Fix linting
      
      * Only add this when a data request
      
      * Update prerender data tests
      
      * s/isServerless/isLikeServerless/
      
      * Don't rely on query for `next start` in serverless mode
      
      * Rename var
      
      * Update renderedDuringBuild check
      
      * Add test for dynamic param with bracket
      
      * Fix serverless next start handling
      
      * remove todo
      
      * Adjust comment
      
      * Update calculateRevalidate
      
      * Remove cache logic from render.tsx
      
      * Remove extra imports
      
      * Move SPR cache logic to next-server
      
      * Remove old isDynamic prop
      
      * Add calling App getInitialProps for SPR pages
      
      * Update revalidate logic
      
      * Add isStale to SprCacheValue
      
      * Update headers for SPR
      
      * add awaiting pendingRevalidation
      
      * Dont return null for revalidation render
      
      * Adjust logic
      
      * Be sure to remove coalesced render
      
      * Fix data for serverless
      
      * Create a method coalescing utility
      
      * Remove TODO
      
      * Extract send payload helper
      
      * Wrap in-line
      
      * Move around some code
      
      * Add tests for de-duping and revalidating
      
      * Update prerender manifest test
      85e720a0
  30. 16 9月, 2019 1 次提交
    • J
      Update build feedback with dots indicating activity (#8382) · 204028d6
      JJ Kasper 提交于
      * Add progress for analyzing and auto-prerendering
      
      * Add typing for tty-aware-progress and use stdout
      
      * Add fancier spinners
      
      * Update spinner and add handling for logs while spinning
      
      * Remove un-needed types package
      
      * Remove progress and combine analyzing/prerendering messages
      204028d6
  31. 05 9月, 2019 1 次提交
  32. 04 9月, 2019 1 次提交
    • T
      Move next-server back into `next` package (#8613) · 2ba352da
      Tim Neutkens 提交于
      * Initial move
      
      * Make emitting work
      
      * Update paths
      
      * Remove leftover files
      
      * Add correct externals configuration
      
      * Import correct path
      
      * Update path to work with ts-server test
      
      * Update lib directory
      
      * Compile next-server/lib
      2ba352da
  33. 19 8月, 2019 1 次提交
  34. 12 8月, 2019 1 次提交