language stringclasses 1
value | owner stringlengths 2 15 | repo stringlengths 2 21 | sha stringlengths 45 45 | message stringlengths 7 36.3k | path stringlengths 1 199 | patch stringlengths 15 102k | is_multipart bool 2
classes |
|---|---|---|---|---|---|---|---|
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-redux-wrapper/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-redux/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-reflux/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-refnux/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-relay-modern-server-express/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-relay-modern/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-rematch/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) to bootstrap the example:
```bash
npx create-next-app --example wi... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-segment-analytics/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-semantic-ui/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-sentry-simple/README.md | @@ -6,7 +6,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-sentry/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-shallow-routing/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-sitemap-and-robots-express-server/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-slate/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) to bootstrap the example:
```bash
npx create-next-app --example wi... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-socket.io/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-static-export/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-stomp/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-storybook/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-strict-csp-hash/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-strict-csp/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-style-sheet/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-styled-components/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-styled-jsx-plugins/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-styled-jsx-scss/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-styletron/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-sw-precache/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-tailwindcss/README.md | @@ -6,7 +6,7 @@ This is an example of how you can include a global stylesheet in a next.js webap
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-ts-node/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-typescript-styled-components/README.md | @@ -6,7 +6,7 @@ This is a really simple project that show the usage of Next.js with TypeScript a
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-typescript/README.md | @@ -6,7 +6,7 @@ This is a really simple project that show the usage of Next.js with TypeScript.
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap ... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-typestyle/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-typings-for-css-modules/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-universal-configuration-build-time/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-universal-configuration-runtime/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-unstated/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-url-object-routing/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-videojs/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) to bootstrap the example:
```bash
npx create-next-app --example wi... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-webassembly/readme.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-webpack-bundle-size-analyzer/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-yarn-workspaces/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-zeit-fetch/README.md | @@ -4,12 +4,12 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree... | true |
Other | vercel | next.js | f10f3304fe3926b69ad01fdf76e4ae1fbafaf141.json | Replace the deprecated Create Next App URL (#9032) | examples/with-zones/README.md | @@ -4,7 +4,7 @@
### Using `create-next-app`
-Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
+Execute [`create-next-app`](https://github.com/zeit/next.js/tree/c... | true |
Other | vercel | next.js | ac42beae86ea1cdf189e8dc863cbf22ad3ea903d.json | Add buildId to SPR data routes (#8929)
* 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: Joe Haddad <joe.haddad@zeit.co>
* Test to ensure client transition and handle / data route | packages/next/build/index.ts | @@ -535,6 +535,7 @@ export default async function build(dir: string, conf = null): Promise<void> {
srcRoute: null,
dataRoute: path.posix.join(
'/_next/data',
+ buildId,
`${page === '/' ? '/index' : page}.json`
),
}
@@ -552,6 +5... | true |
Other | vercel | next.js | ac42beae86ea1cdf189e8dc863cbf22ad3ea903d.json | Add buildId to SPR data routes (#8929)
* 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: Joe Haddad <joe.haddad@zeit.co>
* Test to ensure client transition and handle / data route | packages/next/build/webpack/loaders/next-serverless-loader.ts | @@ -42,6 +42,7 @@ const nextServerlessLoader: loader.Loader = function() {
/\\/g,
'/'
)
+ const escapedBuildId = buildId.replace(/[|\\{}()[\]^$+*?.-]/g, '\\$&')
if (page.match(API_ROUTE)) {
return `
@@ -110,7 +111,7 @@ const nextServerlessLoader: loader.Loader = function() {
if (req.url.m... | true |
Other | vercel | next.js | ac42beae86ea1cdf189e8dc863cbf22ad3ea903d.json | Add buildId to SPR data routes (#8929)
* 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: Joe Haddad <joe.haddad@zeit.co>
* Test to ensure client transition and handle / data route | packages/next/export/index.ts | @@ -243,7 +243,9 @@ export default async function(
}
const progress = !options.silent && createProgress(filteredPaths.length)
- const sprDataDir = options.buildExport ? outDir : join(outDir, '_next/data')
+ const sprDataDir = options.buildExport
+ ? outDir
+ : join(outDir, '_next/data', buildId)
co... | true |
Other | vercel | next.js | ac42beae86ea1cdf189e8dc863cbf22ad3ea903d.json | Add buildId to SPR data routes (#8929)
* 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: Joe Haddad <joe.haddad@zeit.co>
* Test to ensure client transition and handle / data route | packages/next/next-server/lib/router/router.ts | @@ -623,9 +623,14 @@ export default class Router implements BaseRouter {
(Component as any).__NEXT_SPR
) {
let status: any
- const { pathname } = parse(ctx.asPath || ctx.pathname)
+ // pathname should have leading slash
+ let { pathname } = parse(ctx.asPath || ctx.pathname)
+ path... | true |
Other | vercel | next.js | ac42beae86ea1cdf189e8dc863cbf22ad3ea903d.json | Add buildId to SPR data routes (#8929)
* 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: Joe Haddad <joe.haddad@zeit.co>
* Test to ensure client transition and handle / data route | packages/next/next-server/server/next-server.ts | @@ -252,10 +252,24 @@ export default class Server {
{
match: route('/_next/data/:path*'),
fn: async (req, res, params, _parsedUrl) => {
- // Make sure to 404 for /_next/data/ itself
- if (!params.path) return this.render404(req, res, _parsedUrl)
- // TODO: force `.jso... | true |
Other | vercel | next.js | ac42beae86ea1cdf189e8dc863cbf22ad3ea903d.json | Add buildId to SPR data routes (#8929)
* 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: Joe Haddad <joe.haddad@zeit.co>
* Test to ensure client transition and handle / data route | test/integration/prerender/test/index.test.js | @@ -20,9 +20,58 @@ const appDir = join(__dirname, '..')
const nextConfig = join(appDir, 'next.config.js')
let app
let appPort
+let buildId
let distPagesDir
let exportDir
+const expectedManifestRoutes = () => ({
+ '/': {
+ dataRoute: `/_next/data/${buildId}/index.json`,
+ initialRevalidateSeconds: 1,
+ ... | true |
Other | vercel | next.js | c6609e5bd5ac11e6c43d6f8bd8e2d785eb197b38.json | Update Auth0 example with new version (#9020) | examples/auth0/lib/auth0.js | @@ -1,6 +1,6 @@
-import { useAuth0 } from '@auth0/nextjs-auth0'
+import { initAuth0 } from '@auth0/nextjs-auth0'
-export default useAuth0({
+export default initAuth0({
clientId: process.env.AUTH0_CLIENT_ID,
clientSecret: process.env.AUTH0_CLIENT_SECRET,
scope: process.env.AUTH0_SCOPE, | true |
Other | vercel | next.js | c6609e5bd5ac11e6c43d6f8bd8e2d785eb197b38.json | Update Auth0 example with new version (#9020) | examples/auth0/package.json | @@ -8,7 +8,7 @@
"author": "",
"license": "MIT",
"dependencies": {
- "@auth0/nextjs-auth0": "0.2.0",
+ "@auth0/nextjs-auth0": "0.4.0",
"dotenv": "^8.1.0",
"isomorphic-unfetch": "^3.0.0",
"next": "latest", | true |
Other | vercel | next.js | 7f92c2649831791b3a2451d87a12097bc69f5552.json | Fix global Bluebird causing HMR connection to fail (#9009) | packages/next/server/on-demand-entry-handler.ts | @@ -366,8 +366,6 @@ export default function onDemandEntryHandler(
req.on('close', () => {
clearInterval(pingInterval)
})
- // Do initial ping right after EventSource is finished being set up
- setImmediate(() => runPing())
next()
}
} | false |
Other | vercel | next.js | e5202ffb24c90f5b4e22cc1e07be9e5f5005886f.json | Add CSS fixture for src dir (#9001)
* Add CSS fixture for src dir
* Revert relative customAppFile dir and update tests | packages/next/build/webpack-config.ts | @@ -664,7 +664,7 @@ export default async function getBaseWebpackConfig(
'Custom <App>'
)}. Please move all global CSS imports to ${chalk.cyan(
customAppFile
- ? path.relative(pagesDir, customAppFile)
+ ... | true |
Other | vercel | next.js | e5202ffb24c90f5b4e22cc1e07be9e5f5005886f.json | Add CSS fixture for src dir (#9001)
* Add CSS fixture for src dir
* Revert relative customAppFile dir and update tests | test/integration/css/fixtures/single-global-src/src/pages/_app.js | @@ -0,0 +1,12 @@
+import React from 'react'
+import App from 'next/app'
+import '../../styles/global.css'
+
+class MyApp extends App {
+ render () {
+ const { Component, pageProps } = this.props
+ return <Component {...pageProps} />
+ }
+}
+
+export default MyApp | true |
Other | vercel | next.js | e5202ffb24c90f5b4e22cc1e07be9e5f5005886f.json | Add CSS fixture for src dir (#9001)
* Add CSS fixture for src dir
* Revert relative customAppFile dir and update tests | test/integration/css/fixtures/single-global-src/src/pages/index.js | @@ -0,0 +1,3 @@
+export default function Home () {
+ return <div className='red-text'>This text should be red.</div>
+} | true |
Other | vercel | next.js | e5202ffb24c90f5b4e22cc1e07be9e5f5005886f.json | Add CSS fixture for src dir (#9001)
* Add CSS fixture for src dir
* Revert relative customAppFile dir and update tests | test/integration/css/fixtures/single-global-src/styles/global.css | @@ -0,0 +1,3 @@
+.red-text {
+ color: red;
+} | true |
Other | vercel | next.js | e5202ffb24c90f5b4e22cc1e07be9e5f5005886f.json | Add CSS fixture for src dir (#9001)
* Add CSS fixture for src dir
* Revert relative customAppFile dir and update tests | test/integration/css/test/index.test.js | @@ -44,6 +44,30 @@ describe('CSS Support', () => {
})
})
+ describe('Basic Global Support with src/ dir', () => {
+ const appDir = join(fixturesDir, 'single-global-src')
+
+ beforeAll(async () => {
+ await remove(join(appDir, '.next'))
+ })
+
+ it('should build successfully', async () => {
+... | true |
Other | vercel | next.js | 32633c83ddac4f4389a07e02bf916ad5178268a7.json | Add src directory support for global CSS (#8999) | packages/next/build/webpack-config.ts | @@ -299,14 +299,10 @@ export default async function getBaseWebpackConfig(
: config.crossOrigin
let customAppFile: string | null = config.experimental.css
- ? await findPageFile(
- path.join(dir, 'pages'),
- '/_app',
- config.pageExtensions
- )
+ ? await findPageFile(pagesDir,... | false |
Other | vercel | next.js | 5cd0b0c40faa25a4f8e6d8b13531b069302dea1f.json | Update resetting log for spinners (#8995) | packages/next/build/spinner.ts | @@ -21,6 +21,8 @@ export default function createSpinner(
...options,
}).start()
+ // Add capturing of console.log/warn/error to allow pausing
+ // the spinner before logging and then restarting spinner after
const origLog = console.log
const origWarn = console.warn
const origError = c... | false |
Other | vercel | next.js | 5f1bcd32d64364e5eecdc82f59ece1403fb22b94.json | Update AMP Optimizer to 1.1.1 (#8994)
* This fixes #8932
* Positive side effect: the csp tag for inline amp-script will
automatically be added. | packages/next/package.json | @@ -57,7 +57,7 @@
]
},
"dependencies": {
- "@ampproject/toolbox-optimizer": "1.0.1",
+ "@ampproject/toolbox-optimizer": "1.1.1",
"@babel/core": "7.4.5",
"@babel/plugin-proposal-class-properties": "7.4.4",
"@babel/plugin-proposal-object-rest-spread": "7.4.4", | true |
Other | vercel | next.js | 5f1bcd32d64364e5eecdc82f59ece1403fb22b94.json | Update AMP Optimizer to 1.1.1 (#8994)
* This fixes #8932
* Positive side effect: the csp tag for inline amp-script will
automatically be added. | yarn.lock | @@ -2,30 +2,36 @@
# yarn lockfile v1
-"@ampproject/toolbox-core@^1.0.1":
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/@ampproject/toolbox-core/-/toolbox-core-1.0.1.tgz#e32b7d9e84a3bd0a3e1bd40ebdcdc7dd37bf3e55"
- integrity sha512-8aONoeOAVujavLUezSCtpUjg9khkVndpArbn25cLab6/UG+ZgrFPvU3A7z1TjBvB31bte... | true |
Other | vercel | next.js | bb48a31d5474baf3cf4c8edefd8453c6406dce0c.json | Add extra note about canary branch in contributing (#8991) | contributing.md | @@ -7,7 +7,7 @@ Our Commitment to Open Source can be found [here](https://zeit.co/blog/oss)
3. Install the dependencies: `yarn`
4. Run `yarn dev` to build and watch for code changes
5. In a new terminal, run `yarn types` to compile declaration files from TypeScript
-6. The development branch is `canary`. On a releas... | false |
Other | vercel | next.js | 6685d633e1f4921c1df92a3dee317e16ffa99085.json | Fix Custom Webpack Config in Inferno Example (#8987) | examples/using-inferno/next.config.js | @@ -7,6 +7,7 @@ module.exports = {
}
config.resolve.alias = {
+ ...config.resolve.alias,
react: 'inferno-compat',
'react-dom': 'inferno-compat'
} | false |
Other | vercel | next.js | 80767cd0ec4d2c6e34839284f2d6f95f2143dbae.json | Remove default export from constants.d.ts (#8979) | packages/next/constants.d.ts | @@ -1,2 +1 @@
export * from './dist/next-server/lib/constants'
-export { default } from './dist/next-server/lib/constants' | false |
Other | vercel | next.js | e9b2e25c44c534f9b0a6fb00c59f2952a528343a.json | Convert Dev Server to TypeScript (#8966)
* 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 | packages/next/next-server/server/next-server.ts | @@ -85,7 +85,7 @@ export default class Server {
}
private compression?: Middleware
router: Router
- private dynamicRoutes?: Array<{ page: string; match: RouteMatch }>
+ protected dynamicRoutes?: Array<{ page: string; match: RouteMatch }>
public constructor({
dir = '.',
@@ -166,7 +166,7 @@ export de... | true |
Other | vercel | next.js | e9b2e25c44c534f9b0a6fb00c59f2952a528343a.json | Convert Dev Server to TypeScript (#8966)
* 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 | packages/next/package.json | @@ -163,6 +163,8 @@
"@types/send": "0.14.4",
"@types/styled-jsx": "2.2.8",
"@types/text-table": "0.2.1",
+ "@types/webpack-dev-middleware": "2.0.3",
+ "@types/webpack-hot-middleware": "2.16.5",
"@types/webpack-sources": "0.1.5",
"@zeit/ncc": "0.18.5",
"arg": "4.1.0", | true |
Other | vercel | next.js | e9b2e25c44c534f9b0a6fb00c59f2952a528343a.json | Convert Dev Server to TypeScript (#8966)
* 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 | packages/next/server/error-debug.tsx | @@ -1,23 +1,36 @@
import React from 'react'
+
import Head from '../next-server/lib/head'
// This component is only rendered on the server side.
-export default function ErrorDebug ({ error, info }) {
+export default function ErrorDebug({
+ error,
+ info,
+}: {
+ error: Error
+ info: any
+}) {
return (
- ... | true |
Other | vercel | next.js | e9b2e25c44c534f9b0a6fb00c59f2952a528343a.json | Convert Dev Server to TypeScript (#8966)
* 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 | packages/next/server/hot-reloader.ts | @@ -1,37 +1,44 @@
-import { relative as relativePath, join, normalize, sep } from 'path'
+import fs from 'fs'
+import { IncomingMessage, ServerResponse } from 'http'
+import { join, normalize, relative as relativePath, sep } from 'path'
+import { promisify } from 'util'
+import webpack from 'webpack'
import WebpackDev... | true |
Other | vercel | next.js | e9b2e25c44c534f9b0a6fb00c59f2952a528343a.json | Convert Dev Server to TypeScript (#8966)
* 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 | packages/next/server/lib/error-overlay-middleware.js | @@ -1,25 +0,0 @@
-import url from 'url'
-import launchEditor from 'launch-editor'
-import fs from 'fs'
-import path from 'path'
-
-export default function errorOverlayMiddleware (options) {
- return (req, res, next) => {
- if (req.url.startsWith('/_next/development/open-stack-frame-in-editor')) {
- const query... | true |
Other | vercel | next.js | e9b2e25c44c534f9b0a6fb00c59f2952a528343a.json | Convert Dev Server to TypeScript (#8966)
* 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 | packages/next/server/lib/error-overlay-middleware.ts | @@ -0,0 +1,26 @@
+import url from 'url'
+import launchEditor from 'launch-editor'
+import fs from 'fs'
+import path from 'path'
+import { IncomingMessage, ServerResponse } from 'http'
+
+export default function errorOverlayMiddleware(options: { dir: string }) {
+ return (req: IncomingMessage, res: ServerResponse, next... | true |
Other | vercel | next.js | e9b2e25c44c534f9b0a6fb00c59f2952a528343a.json | Convert Dev Server to TypeScript (#8966)
* 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 | packages/next/server/next-dev-server.ts | @@ -1,29 +1,32 @@
-import Server from '../next-server/server/next-server'
+import AmpHtmlValidator from 'amphtml-validator'
+import fs from 'fs'
+import { IncomingMessage, ServerResponse } from 'http'
import { join, relative } from 'path'
+import React from 'react'
+import { UrlWithParsedQuery } from 'url'
import { p... | true |
Other | vercel | next.js | e9b2e25c44c534f9b0a6fb00c59f2952a528343a.json | Convert Dev Server to TypeScript (#8966)
* 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 | packages/next/server/on-demand-entry-handler.ts | @@ -1,88 +1,107 @@
-import DynamicEntryPlugin from 'webpack/lib/DynamicEntryPlugin'
import { EventEmitter } from 'events'
+import { IncomingMessage, ServerResponse } from 'http'
import { join, posix } from 'path'
+import { stringify } from 'querystring'
import { parse } from 'url'
-import { pageNotFoundError } from ... | true |
Other | vercel | next.js | e9b2e25c44c534f9b0a6fb00c59f2952a528343a.json | Convert Dev Server to TypeScript (#8966)
* 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 | packages/next/types/misc.d.ts | @@ -1,6 +1,8 @@
declare module '@babel/plugin-transform-modules-commonjs'
declare module 'webpack/lib/GraphHelpers'
+declare module 'webpack/lib/DynamicEntryPlugin'
declare module 'unfetch'
+declare module 'launch-editor'
declare module 'styled-jsx/server'
declare module 'async-retry'
@@ -93,3 +95,19 @@ declare ... | true |
Other | vercel | next.js | e9b2e25c44c534f9b0a6fb00c59f2952a528343a.json | Convert Dev Server to TypeScript (#8966)
* 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 | yarn.lock | @@ -2205,6 +2205,13 @@
resolved "https://registry.yarnpkg.com/@types/lru-cache/-/lru-cache-5.1.0.tgz#57f228f2b80c046b4a1bd5cac031f81f207f4f03"
integrity sha512-RaE0B+14ToE4l6UqdarKPnXwVDuigfFv+5j9Dze/Nqr23yyuqdNvzcZi3xB+3Agvi5R4EOgAksfv3lXX4vBt9w==
+"@types/memory-fs@*":
+ version "0.3.2"
+ resolved "https://... | true |
Other | vercel | next.js | d299811bfaea36088e037618c71fc6762df8b1c3.json | Convert Export to TypeScript (#8965)
This pull request converts Next.js' export CLI command to use TypeScript. This is useful for upcoming changes. | packages/next/build/output/index.ts | @@ -41,7 +41,7 @@ type AmpStatus = {
code: string
}
-type AmpPageStatus = {
+export type AmpPageStatus = {
[page: string]: { errors: AmpStatus[]; warnings: AmpStatus[] }
}
| true |
Other | vercel | next.js | d299811bfaea36088e037618c71fc6762df8b1c3.json | Convert Export to TypeScript (#8965)
This pull request converts Next.js' export CLI command to use TypeScript. This is useful for upcoming changes. | packages/next/export/index.d.ts | @@ -1,5 +0,0 @@
-export default function(
- dir: string,
- options: any,
- configuration?: any
-): Promise<void> | true |
Other | vercel | next.js | d299811bfaea36088e037618c71fc6762df8b1c3.json | Convert Export to TypeScript (#8965)
This pull request converts Next.js' export CLI command to use TypeScript. This is useful for upcoming changes. | packages/next/export/index.ts | @@ -1,36 +1,37 @@
-import { cpus } from 'os'
import chalk from 'chalk'
+import { copyFile as copyFileOrig, existsSync, readFileSync } from 'fs'
import Worker from 'jest-worker'
-import { promisify } from 'util'
import mkdirpModule from 'mkdirp'
-import { resolve, join, dirname } from 'path'
+import { cpus } from 'os... | true |
Other | vercel | next.js | d299811bfaea36088e037618c71fc6762df8b1c3.json | Convert Export to TypeScript (#8965)
This pull request converts Next.js' export CLI command to use TypeScript. This is useful for upcoming changes. | packages/next/next-server/server/config.ts | @@ -105,7 +105,7 @@ function normalizeConfig(phase: string, config: any) {
export default function loadConfig(
phase: string,
dir: string,
- customConfig: any
+ customConfig?: object | null
) {
if (customConfig) {
return assignDefaults({ configOrigin: 'server', ...customConfig }) | true |
Other | vercel | next.js | 3f51f0ed8010d0dcef4f2ffe1af5992d363c6456.json | Add support for CSS Module patching (#8957) | packages/next/build/webpack-config.ts | @@ -921,7 +921,8 @@ export default async function getBaseWebpackConfig(
use &&
typeof use === 'object' &&
// Identify use statements only pertaining to `css-loader`
- use.loader === 'css-loader' &&
+ (use.loader === 'css-loader' ||
+ use.loader =... | false |
Other | vercel | next.js | 50bd10f5f8448738abe24c7a5ad0c566a82a8c09.json | Use Better Telemetry Directory (#8942)
* 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 user... | packages/next/build/index.ts | @@ -30,6 +30,7 @@ import {
recordNextPlugins,
recordVersion,
} from '../telemetry/events'
+import { setDistDir as setTelemetryDir } from '../telemetry/storage'
import { CompilerResult, runCompiler } from './compiler'
import { createEntrypoints, createPagesMapping } from './entries'
import { generateBuildId } ... | true |
Other | vercel | next.js | 50bd10f5f8448738abe24c7a5ad0c566a82a8c09.json | Use Better Telemetry Directory (#8942)
* 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 user... | packages/next/cli/next-build.ts | @@ -1,10 +1,11 @@
#!/usr/bin/env node
-import { resolve, join } from 'path'
import { existsSync } from 'fs'
import arg from 'next/dist/compiled/arg/index.js'
+import { resolve } from 'path'
+
+import { cliCommand } from '../bin/next'
import build from '../build'
import { printAndExit } from '../server/lib/utils'
-... | true |
Other | vercel | next.js | 50bd10f5f8448738abe24c7a5ad0c566a82a8c09.json | Use Better Telemetry Directory (#8942)
* 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 user... | packages/next/export/index.js | @@ -9,6 +9,8 @@ import { existsSync, readFileSync, copyFile as copyFileOrig } from 'fs'
import { recursiveCopy } from '../lib/recursive-copy'
import { recursiveDelete } from '../lib/recursive-delete'
import { formatAmpMessages } from '../build/output/index'
+import { setDistDir as setTelemetryDir } from '../telemetr... | true |
Other | vercel | next.js | 50bd10f5f8448738abe24c7a5ad0c566a82a8c09.json | Use Better Telemetry Directory (#8942)
* 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 user... | packages/next/server/next-dev-server.js | @@ -10,6 +10,7 @@ import { ampValidation } from '../build/output/index'
import * as Log from '../build/output/log'
import { verifyTypeScriptSetup } from '../lib/verifyTypeScriptSetup'
import Watchpack from 'watchpack'
+import { setDistDir as setTelemetryDir } from '../telemetry/storage'
import { recordVersion } fro... | true |
Other | vercel | next.js | 50bd10f5f8448738abe24c7a5ad0c566a82a8c09.json | Use Better Telemetry Directory (#8942)
* 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 user... | packages/next/telemetry/storage.ts | @@ -1,7 +1,6 @@
import chalk from 'chalk'
import Conf from 'conf'
import { BinaryLike, createHash, randomBytes } from 'crypto'
-import findUp from 'find-up'
import isDockerFunction from 'is-docker'
import path from 'path'
@@ -10,6 +9,8 @@ import * as ciEnvironment from './ci-info'
import { _postPayload } from '... | true |
Other | vercel | next.js | 40b0b9b958f53788efe9ea0d9790f1c374886cd6.json | Reduce Timeframe That FOUC Styles Are Active (#8937)
* Show content as soon as <style> tags are added
* Add fallback removal
* Add test for when unused
* Ensure the function is ES5 compatible
* IE support
* Test it works on broken pages | packages/next/build/webpack-config.ts | @@ -570,18 +570,39 @@ export default async function getBaseWebpackConfig(
// and prod. To fix this, we render a <noscript> tag as
// an anchor for the styles to be placed before. These
// styles will be applied _before_ <style jsx global>.
- ... | true |
Other | vercel | next.js | 40b0b9b958f53788efe9ea0d9790f1c374886cd6.json | Reduce Timeframe That FOUC Styles Are Active (#8937)
* Show content as soon as <style> tags are added
* Add fallback removal
* Add test for when unused
* Ensure the function is ES5 compatible
* IE support
* Test it works on broken pages | packages/next/client/index.js | @@ -238,28 +238,10 @@ function renderReactElement (reactEl, domEl) {
// The check for `.hydrate` is there to support React alternatives like preact
if (isInitialRender) {
- ReactDOM.hydrate(reactEl, domEl, function () {
- if (process.env.NODE_ENV !== 'production') {
- document
- .querySe... | true |
Other | vercel | next.js | 40b0b9b958f53788efe9ea0d9790f1c374886cd6.json | Reduce Timeframe That FOUC Styles Are Active (#8937)
* Show content as soon as <style> tags are added
* Add fallback removal
* Add test for when unused
* Ensure the function is ES5 compatible
* IE support
* Test it works on broken pages | packages/next/client/next-dev.js | @@ -36,6 +36,20 @@ initNext({ webpackHMR })
initializePrerenderIndicator()
}
+ // This is the fallback helper that removes Next.js' no-FOUC styles when
+ // CSS mode is enabled. This only really activates if you haven't created
+ // _any_ styles in your application yet.
+ ;(window.requestAnima... | true |
Other | vercel | next.js | 40b0b9b958f53788efe9ea0d9790f1c374886cd6.json | Reduce Timeframe That FOUC Styles Are Active (#8937)
* Show content as soon as <style> tags are added
* Add fallback removal
* Add test for when unused
* Ensure the function is ES5 compatible
* IE support
* Test it works on broken pages | packages/next/pages/_document.tsx | @@ -344,12 +344,12 @@ export class Head extends Component<
this.context._documentProps.hasCssMode && (
<>
<style
- data-next-hydrating
+ data-next-hide-fouc
dangerouslySetInnerHTML={{
__html: `body{display:none}`,
... | true |
Other | vercel | next.js | 40b0b9b958f53788efe9ea0d9790f1c374886cd6.json | Reduce Timeframe That FOUC Styles Are Active (#8937)
* Show content as soon as <style> tags are added
* Add fallback removal
* Add test for when unused
* Ensure the function is ES5 compatible
* IE support
* Test it works on broken pages | test/integration/css/fixtures/unused/pages/index.js | @@ -0,0 +1,3 @@
+export default function Home () {
+ return <div />
+} | true |
Other | vercel | next.js | 40b0b9b958f53788efe9ea0d9790f1c374886cd6.json | Reduce Timeframe That FOUC Styles Are Active (#8937)
* Show content as soon as <style> tags are added
* Add fallback removal
* Add test for when unused
* Ensure the function is ES5 compatible
* IE support
* Test it works on broken pages | test/integration/css/test/index.test.js | @@ -325,6 +325,77 @@ describe('CSS Support', () => {
})
})
+ describe('Body is not hidden when unused in Development', () => {
+ const appDir = join(fixturesDir, 'unused')
+
+ beforeAll(async () => {
+ await remove(join(appDir, '.next'))
+ })
+
+ let appPort
+ let app
+ beforeAll(async... | true |
Other | vercel | next.js | 67f7cf56271304504a7c8b05a50079388bc394a0.json | Remove `config` export (#8895)
* Remove `config` export
This removes the `config` export instead of all exports.
Reverts #8889 (but with fixed behavior)
* Add test to ensure config object is dropped from client-bundle | packages/next/build/babel/plugins/next-page-config.ts | @@ -55,11 +55,18 @@ export default function nextPageConfig({
path: NodePath<BabelTypes.ExportNamedDeclaration>,
state: any
) {
- if (state.bundleDropped || !path.node.declaration) {
+ // Skip if the file will be dropped
+ if (... | true |
Other | vercel | next.js | 67f7cf56271304504a7c8b05a50079388bc394a0.json | Remove `config` export (#8895)
* Remove `config` export
This removes the `config` export instead of all exports.
Reverts #8889 (but with fixed behavior)
* Add test to ensure config object is dropped from client-bundle | test/integration/page-config/next.config.js | @@ -0,0 +1 @@
+module.exports = { generateBuildId: () => 'test-page-config' } | true |
Other | vercel | next.js | 67f7cf56271304504a7c8b05a50079388bc394a0.json | Remove `config` export (#8895)
* Remove `config` export
This removes the `config` export instead of all exports.
Reverts #8889 (but with fixed behavior)
* Add test to ensure config object is dropped from client-bundle | test/integration/page-config/pages/check-client-remove.js | @@ -0,0 +1,10 @@
+import { config as hello } from '../something'
+import { config as world } from '../config'
+
+export const config = { _unknownKey: 'THIS_VALUE_SHOULD_BE_GONE' }
+
+export default () => (
+ <p>
+ {hello} {world}
+ </p>
+) | true |
Other | vercel | next.js | 67f7cf56271304504a7c8b05a50079388bc394a0.json | Remove `config` export (#8895)
* Remove `config` export
This removes the `config` export instead of all exports.
Reverts #8889 (but with fixed behavior)
* Add test to ensure config object is dropped from client-bundle | test/integration/page-config/test/index.test.js | @@ -13,6 +13,16 @@ describe('Page Config', () => {
it('builds without error when export const config is used outside page', async () => {
const { stderr } = await nextBuild(appDir, undefined, { stderr: true })
expect(stderr).not.toMatch(/Failed to compile\./)
+
+ const clientFileOutput = await fs.readFi... | true |
Other | vercel | next.js | 9a4234cf548aa0eed4b0c739e81bcfa6437cc08f.json | Remove Recipes from Readme (#8939)
These Recipies are not regularly audited to ensure they're using the most up-to-date and suggested practices.
We'll reintroduce the idea of "recipies" in the future, for now, the examples directory is a great place to start. | packages/next/README.md | @@ -118,7 +118,6 @@
- [Multi Zones](#multi-zones)
- [How to define a zone](#how-to-define-a-zone)
- [How to merge them](#how-to-merge-them)
-- [Recipes](#recipes)
- [FAQ](#faq)
- [Contributing](#contributing)
- [Authors](#authors)
@@ -2670,14 +2669,6 @@ You can use [now dev](https://zeit.co/docs/v2/developmen... | false |
Other | vercel | next.js | 8391d48fc78ba7a11aed750ff0be10807017ed62.json | Change default body display setting (#8941) | packages/next/pages/_document.tsx | @@ -356,7 +356,7 @@ export class Head extends Component<
<noscript data-next-hydrating>
<style
dangerouslySetInnerHTML={{
- __html: `body{display:unset}`,
+ __html: `body{display:block}`,
}}
/>
... | false |
Other | vercel | next.js | 03d589349a6a30e449b6b298b3b40e01787756e3.json | Render valid optimized AMP by default (#7465)
* Upgrade to latest AMP toolbox optimizer
* Remove amphtml from AMP only and update tests
* Update tests
* Apply suggestions from code review
Co-Authored-By: Joe Haddad <timer150@gmail.com> | packages/next-server/package.json | @@ -38,7 +38,7 @@
]
},
"dependencies": {
- "amp-toolbox-optimizer": "0.5.3",
+ "amp-toolbox-optimizer": "1.2.0-alpha.1",
"etag": "1.8.1",
"find-up": "4.0.0",
"fresh": "0.5.2", | true |
Other | vercel | next.js | 03d589349a6a30e449b6b298b3b40e01787756e3.json | Render valid optimized AMP by default (#7465)
* Upgrade to latest AMP toolbox optimizer
* Remove amphtml from AMP only and update tests
* Update tests
* Apply suggestions from code review
Co-Authored-By: Joe Haddad <timer150@gmail.com> | packages/next-server/server/optimize-amp.ts | @@ -1,44 +1,10 @@
-import { ParsedUrlQuery } from 'querystring'
-
-interface IOptimizerConfig {
- transforms?: string[]
- validAmp?: boolean
- verbose?: boolean
-}
-
-interface IOptimizer {
- transformHtml: (html: string, params?: object) => Promise<string>
- setConfig: (config: IOptimizerConfig) => void
-}
-
-int... | true |
Other | vercel | next.js | 03d589349a6a30e449b6b298b3b40e01787756e3.json | Render valid optimized AMP by default (#7465)
* Upgrade to latest AMP toolbox optimizer
* Remove amphtml from AMP only and update tests
* Update tests
* Apply suggestions from code review
Co-Authored-By: Joe Haddad <timer150@gmail.com> | packages/next-server/server/render.tsx | @@ -488,18 +488,11 @@ export async function renderToHTML(
if (amphtml && html) {
// use replace to allow rendering directly to body in AMP mode
html = html.replace('__NEXT_AMP_RENDER_TARGET__', docProps.html)
-
- if (ampMode.hasQuery) {
- html = await optimizeAmp(html, { amphtml, query })
- }
+ ... | true |
Other | vercel | next.js | 03d589349a6a30e449b6b298b3b40e01787756e3.json | Render valid optimized AMP by default (#7465)
* Upgrade to latest AMP toolbox optimizer
* Remove amphtml from AMP only and update tests
* Update tests
* Apply suggestions from code review
Co-Authored-By: Joe Haddad <timer150@gmail.com> | packages/next/README.md | @@ -2005,9 +2005,8 @@ Hybrid AMP (`pages/about.js`) would output:
AMP-only (`pages/about.js`) would output:
- `out/about/index.html` - Optimized AMP page
-- `out/about.amp/index.html` - AMP page
-During export Next.js automatically detects if a page is AMP-only and apply dirty/clean optimizations. The dirty versi... | true |
Other | vercel | next.js | 03d589349a6a30e449b6b298b3b40e01787756e3.json | Render valid optimized AMP by default (#7465)
* Upgrade to latest AMP toolbox optimizer
* Remove amphtml from AMP only and update tests
* Update tests
* Apply suggestions from code review
Co-Authored-By: Joe Haddad <timer150@gmail.com> | packages/next/export/worker.js | @@ -133,8 +133,8 @@ process.on(
if (curRenderOpts.amphtml && query.amp) {
await validateAmp(html, path)
}
- if ((curRenderOpts.amphtml && !query.amp) || curRenderOpts.hasAmp) {
- // we need to render a clean AMP version
+ if (curRenderOpts.hasAmp) {
+ // we n... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.