1. 28 Sep, 2019 7 commits
  2. 27 Sep, 2019 5 commits
    • Joe Haddad's avatar
      Add SPR Dynamic Routes to Manifest (#8885) · 296cfacd
      Joe Haddad authored
      * Add SPR Dynamic Routes to Manifest
      This adds dynamic routes for SPR pages to the prerender manifest so we can configure the Now Builder to handle these routes as SPR routes. Otherwise, they're treated like normal `getInitialProps` pages.
      
      * Fix types
      296cfacd
    • Joe Haddad's avatar
      v9.0.7-canary.7 · c566b322
      Joe Haddad authored
      c566b322
    • Joe Haddad's avatar
      Configure the Default Revalidate (#8880) · 2aa12031
      Joe Haddad authored
      * Configure the Default Revalidate
      The default revalidate behavior should be configured by Next.js. Otherwise, the behavior might drift or change in non-semver compliant ways between Next.js and the builder (or other 3rd party setups).
      
      * Add additional comment
      2aa12031
    • Joe Haddad's avatar
      Enforce natural numbers for SPR (#8882) · 01e54718
      Joe Haddad authored
      Per the HTTP specification, only natural numbers may be used for caching durations. We should enforce this with a really helpful error message.
      01e54718
    • Joe Haddad's avatar
      Favicon should have low importance (#8878) · e8522f40
      Joe Haddad authored
      * Favicon should have low importance
      
      * Update index.js
      e8522f40
  3. 26 Sep, 2019 4 commits
  4. 25 Sep, 2019 2 commits
    • Joe Haddad's avatar
      v9.0.7-canary.6 · ebf1fe3d
      Joe Haddad authored
      ebf1fe3d
    • JJ Kasper's avatar
      SPR follow ups (#8846) · 2ae475e0
      JJ Kasper authored
      * 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: 's avatarJoe Haddad <joe.haddad@zeit.co>
      
      * Change from error to warning high revalidate value
      2ae475e0
  5. 24 Sep, 2019 6 commits
    • JJ Kasper's avatar
      Remove extra build logs (#8839) · fd50e51e
      JJ Kasper authored
      fd50e51e
    • JJ Kasper's avatar
      Add `src` directory support (#8735) · a8e3b022
      JJ Kasper authored
      * Add find-pages-dir
      
      * Add support for src directory
      
      * Add test for pages dir preference
      
      * Update comment
      a8e3b022
    • Tim Neutkens's avatar
      v9.0.7-canary.5 · fb9d777f
      Tim Neutkens authored
      fb9d777f
    • Maël Nison's avatar
      TS / PnP compatibility (#8744) · 62fce6f5
      Maël Nison authored
      * Fixes PnP + TS support
      
      * Uses import on the resolved TS path (since it's not a dep)
      
      * Fixes TS
      62fce6f5
    • Janicklas Ralph's avatar
    • JJ Kasper's avatar
      Add experimental SPR support (#8832) · 85e720a0
      JJ Kasper authored
      * 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: 's avatarJoe 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
  6. 23 Sep, 2019 1 commit
  7. 21 Sep, 2019 1 commit
  8. 20 Sep, 2019 2 commits
  9. 19 Sep, 2019 9 commits
  10. 18 Sep, 2019 3 commits
    • Joe Haddad's avatar
      v9.0.7-canary.1 · 1aec686c
      Joe Haddad authored
      1aec686c
    • Joe Haddad's avatar
      Simplify development hiding (#8789) · 3cd37b29
      Joe Haddad authored
      We were trying to be too tricky. `visibility: hidden` is great for layout speed, but it allows child elements to make themselves visible.
      
      Since styles are going to change anyway, this doesn't make sense. We should completely hide the body which prevents a reflow by avoiding any style computation until Global CSS is ready to go.
      3cd37b29
    • Joe Haddad's avatar
      v9.0.7-canary.0 · e920e579
      Joe Haddad authored
      e920e579