- 09 1月, 2020 1 次提交
-
-
由 Afzal Sayed 提交于
* Use optional chaining syntax * Changes as per review * Bug fix
-
- 05 1月, 2020 1 次提交
-
-
由 Tim Neutkens 提交于
* Remove experiment * Add back ssr-prepass for serverless test * Update size as they both decreased Co-authored-by: NJJ Kasper <jj@jjsweb.site>
-
- 01 1月, 2020 2 次提交
- 31 12月, 2019 1 次提交
-
-
由 JJ Kasper 提交于
* Add error for rewrite to auto-exported dynamic page * Update packages/next/next-server/server/render.tsx Co-authored-by: NJoe Haddad <timer150@gmail.com>
-
- 30 12月, 2019 1 次提交
-
-
由 Tim Neutkens 提交于
* Add basePath support * Add tests including copy of HMR tests * Add production tests * Add tests for serverless target * Add missing quotes
-
- 24 12月, 2019 1 次提交
-
-
由 JJ Kasper 提交于
* Add check: true behavior to custom routes * Update adding dev routes * Add checking of pages and dynamic routes for check: true * Fix hasPage binding * Add tests for check: true behavior * Update regex checking * Make changes based on review * Update to handle rewrites in serverless loader * Update to not change req.url * Make sure to always parse dynamic route params * Export all of pathToRegexp from path-match Co-authored-by: NJoe Haddad <timer150@gmail.com>
-
- 18 12月, 2019 1 次提交
-
-
由 JJ Kasper 提交于
-
- 14 12月, 2019 1 次提交
-
-
由 JJ Kasper 提交于
* Fix query values being passed in dev mode for SSG * Update test names
-
- 10 12月, 2019 2 次提交
-
-
由 JJ Kasper 提交于
* De-dupe pagesManifest * Update handleApiRequest a bit * Simplify handleApiRequest a bit * Update packages/next/next-server/server/next-server.ts Co-authored-by: NJoe Haddad <joe.haddad@zeit.co>
-
由 JJ Kasper 提交于
* Add checking of custom routes for invalid fields * Remove un-used test imports * Mentioned statusCode can be undefined in error message * Update test * Update invalid routes output * Add checking to make sure source/destination start with slash * Update import
-
- 28 11月, 2019 1 次提交
-
-
由 Joe Haddad 提交于
* Upgrade `path-to-regexp` * Correct import * Update delimiter * Fix path match * Fix hot loader * Fix params.path usage and pathToRegexp import * Revert changes for params.path * Fix lint * Simplify path match function * Delimiter should always be `/` * Fix passed in params * Add new regex wrapping * Wrap another route * Fix error message match
-
- 26 11月, 2019 1 次提交
-
-
由 JJ Kasper 提交于
* Add custom routes to build output * De-dupe code a bit
-
- 23 11月, 2019 1 次提交
-
-
由 JJ Kasper 提交于
* Adds err.sh for multi-match error * Fix missing apostrophe * Update regex to catch other param names * Add test for multi-match error * Update test/integration/invalid-multi-match/test/index.test.js
-
- 20 11月, 2019 1 次提交
-
-
由 JJ Kasper 提交于
* Add handling for rewriting to /_next with catchall * bump
-
- 18 11月, 2019 1 次提交
-
-
由 Tim Neutkens 提交于
* Fix next-news inconsistent return type * Add failing test for static file rewrite * Revert "Fix next-news inconsistent return type" This reverts commit b66e76fb86061e45741c3c4bb9296a0874900f76. * Add failing test for double redirect * Fix bug in matcher when having multiple redirects * Remove custom traversal in favor of router handling it * Update next-server.ts * Update router.ts * Temporarily disable test * Don't deeply resolve redirects * Support combined parameters + query passing * Make sure params are correctly passed in * Add test for hash in route
-
- 16 11月, 2019 1 次提交
-
-
由 JJ Kasper 提交于
* Fix typo in serverless loader * Add test for top level error in API route * Fix type error
-
- 13 11月, 2019 1 次提交
-
-
由 JJ Kasper 提交于
* Render 404 for isInternalUrl in render * Fix internal handling for static dir
-
- 11 11月, 2019 1 次提交
-
-
由 Joe Haddad 提交于
* Update `packages/` * Update examples * Update tests * Update bench * Update top level files * Fix build * trigger
-
- 10 11月, 2019 2 次提交
-
-
由 JJ Kasper 提交于
* Test custom-routes serverless * Make sure we add default statusCode to routes-manifest * Update routes-manifest * Add DEFAULT_REDIRECT_STATUS constant
-
由 JJ Kasper 提交于
* add initial custom-routes handling * Add tests for custom-routes * Handle chained redirects, separate dev custom routes reading, and add version to routes manifest * Handle no routes manifest * Swap build custom routes calling * Add flatten-routes * Add flattening of custom routes * Re-work implementation to follow routes top-down * Add regex field to routes-manifest * Fix path-to-regexp match breaking after upgrade * Fix duplicate const from merge * Add some changes from review * Don't make path-match strict * add default custom route values * Update routes-manifest * Update options for path-match * Remove todo * Add test for rewrite with params * Only use strict mode for custom routes * Update dynamic-routing test * Move getCustomRoutes to prepare * Remove extra change * Update handling for error-in-error test * Apply suggestions from code review Co-Authored-By: NJoe Haddad <joe.haddad@zeit.co> * Apply suggestions from review * Update slice change * Apply suggestions from code review Co-Authored-By: NJoe Haddad <joe.haddad@zeit.co> * Apply suggestions from review * Fix TypeScript error * Fix getCustomRoutes in dev mode * Apply suggestions from code review * Update slice * Apply suggestions from code review Co-Authored-By: NJoe Haddad <joe.haddad@zeit.co> * Delete un-used test page * Add test for param overwriting * Apply suggestions from code review Co-Authored-By: NJoe Haddad <joe.haddad@zeit.co> * Add extra check to param test
-
- 05 11月, 2019 1 次提交
-
-
由 JJ Kasper 提交于
* Only add static files route if folder exists * Remove extra import
-
- 02 11月, 2019 1 次提交
-
-
由 Tim Neutkens 提交于
* Add initial bit for plugins * Add checks for needed metadata values * Add test * Initial plugins changes * Add handling for _app middleware * Add loading of _document middleware and handling of multiple default export syntaxes * Fix insert order for middleware member expression * Remove early return from middleware plugin from testing * Add tests for current plugin middlewares * Update test plugin package.json * Update handling for class default export * Update to use webpack loader instead of babel plugin, remove redundant middleware naming, and add field for required env for plugins * Add middleware to support material-ui use case and example material-ui plugin * Update tests and remove tests stuff from google analytics plugin * Remove old plugin suite * Add init-server middleware * Exit hard without stack trace when error in collecting plugins * Add on-error-client and on-error-server and update to run init-server with next-start in serverless mode * Update init-client for google analytics plugin * Add example Sentry plugin and update with-sentry-simple * Remove middleware field/folder and use src dir for plugins * Add post-hydration middleware and update material-ui plugin * Put plugins code behind flag * Update chromedriver * Revert "Update chromedriver" This reverts commit 1461e978e677f7da05e29e0415ec614a04bf65f9. * Update lock file * Remove un-needed _app for sentry example * Add auto loading of scoped packages, add plugins config for manually listing plugins, and update to only collect plugins once * Update example plugins * Expose plugins' config * Rename plugin lifecycles and add babel-preset-build * Rename other methods with unstable * Update log when plugin config overrides auto-detecting
-
- 23 10月, 2019 1 次提交
-
-
由 Joe Haddad 提交于
* Cache No-Revalidate Pages * Specifically check for `false`
-
- 11 10月, 2019 2 次提交
-
-
由 JJ Kasper 提交于
* Update to error on usage of serverRuntimeConfig with serverless * Add tests for errors for serverless and runtime configs * Update docs wording
-
由 JJ Kasper 提交于
* Add buildId to SPR data routes * Update buildId replace in serverless loader * Use new RegExp and add comment * Apply suggestions from code review Co-Authored-By: NJoe Haddad <joe.haddad@zeit.co> * Test to ensure client transition and handle / data route
-
- 08 10月, 2019 1 次提交
-
-
由 Joe Haddad 提交于
* Test `public/static/` folder * Public routes should be matched before static catch-all
-
- 06 10月, 2019 1 次提交
-
-
由 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
-
- 05 10月, 2019 1 次提交
-
-
由 Joe Haddad 提交于
* Convert Dev Server to TypeScript This converts the Next.js Development Server to TypeScript in prep for upcoming changes. * Convert remaining necessary * Fix some type errors * Adjust types
-
- 30 9月, 2019 1 次提交
-
-
由 JJ Kasper 提交于
-
- 27 9月, 2019 1 次提交
-
-
由 Joe Haddad 提交于
The Now CDN does not support the `stale-if-error` header and already behaves like that for `stale-while-revalidate`. Removing this header allows Now CDN to use its default headers instead of sending _only_ `stale-if-error` after stripping `s-maxage` and `stale-while-revalidate`.
-
- 25 9月, 2019 1 次提交
-
-
由 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
-
- 24 9月, 2019 2 次提交
-
-
由 JJ Kasper 提交于
* Add find-pages-dir * Add support for src directory * Add test for pages dir preference * Update comment
-
由 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
-
- 18 9月, 2019 1 次提交
-
-
由 Joe Haddad 提交于
* Global CSS Support * Fix webpack configuration * oneOf rule isn't necessary yet * Adjust CSS chunk naming * Begin testing CSS behavior * Add another test TODO * Replace null-loader with ignore-loader * Turn on chunks for new CSS feature * Fix multi test suite * Test CSS import order * Test style HMR * Test CSS compilation * Test compilation and prefixing together * Verify CSS styling works for Development and Production * Add missing TODO * Remove unnecessary test * Adjust TODO message * Hide page until React hydrates * Revert "Hide page until React hydrates" This reverts commit 898d4e0ee547b003d5790e2b11476740d645b907. * Hide FOUC during development * Test CSS imports * Update tests TODO * Add fixture for url() test * Test `file-loader` support in CSS files * Use a simple variant of cssnano * Self-import * Undo bundling * Implement suggestion
-
- 04 9月, 2019 1 次提交
-
-
由 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
-
- 30 8月, 2019 1 次提交
-
-
由 JJ Kasper 提交于
-
- 11 8月, 2019 1 次提交
-
-
由 Lukáš Huvar 提交于
* Revert 405 on pages * Modify tests
-
- 06 8月, 2019 1 次提交
-
-
由 Joe Haddad 提交于
* Experimental: Serverless Trace target The Serverless Trace target produces Serverless-handler wrapped entrypoints, but does not bundle all of `node_modules`. This behavior increases bundling performance to be more akin to `target: 'server'`. This mode is expected to be used with smart platforms (like [ZEIT Now](https://zeit.co/now) that can trace a program to its minimum dependencies. * Use more generic variables * Add asset relocator for production mode of serverless trace * Verify Firebase compatiblity * Revert "Add asset relocator for production mode of serverless trace" This reverts commit 8404f1dcf28b60edab41a56c94b38dcd3fddec20. * Add serverless trace tests * Add _isLikeServerless helper * Make constants * Fix export * Update packages/next-server/server/config.ts Co-Authored-By: NJJ Kasper <jj@jjsweb.site> * Use a global helper for is like serverless * Update import for isTargetLikeServerless * Update packages/next/build/index.ts Co-Authored-By: NJJ Kasper <jj@jjsweb.site>
-
- 30 7月, 2019 1 次提交
-
-
由 Jason Miller 提交于
* Add `compress` option to enable gzip compression in `next start`. * Add compress option, defaulting to true * Disable compression for serverless target * Pin compression dep Co-Authored-By: NJoe Haddad <timer150@gmail.com> * Pin compression types Co-Authored-By: NJoe Haddad <timer150@gmail.com> * lockfile update for locked compression deps * simplify compression middleware application * add test for compression
-