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 | 67e7753c85fe15ebb2085eb2b7ac11f348976cfb.json | Fix serverless chunking (#8569)
* Fix Serverless Chunking
* Remove old test & environment variable
* Update serverless trace test case | test/integration/serverless/test/index.test.js | @@ -2,7 +2,7 @@
/* global jasmine */
import webdriver from 'next-webdriver'
import { join } from 'path'
-import { existsSync } from 'fs'
+import { existsSync, readdirSync, readFileSync } from 'fs'
import {
killApp,
findPort,
@@ -15,6 +15,8 @@ import fetch from 'node-fetch'
const appDir = join(__dirname, '.... | true |
Other | vercel | next.js | 4eb7dde490fa4b4dd245b65178b153bb7fac9c99.json | Add err.sh for incompatible href and as (#8561)
* Add err.sh for incompatible href and as
* Add note for only showing when Link is clicked | errors/incompatible-href-as.md | @@ -0,0 +1,42 @@
+# Incompatible `href` and `as` values
+
+#### Why This Error Occurred
+
+Somewhere you are utilizing the `next/link` component, `Router#push`, or `Router#replace` with a dynamic route in your `href` that has an incompatible `as` value. The `as` value is incompatible when the path doesn't provide only ... | true |
Other | vercel | next.js | 4eb7dde490fa4b4dd245b65178b153bb7fac9c99.json | Add err.sh for incompatible href and as (#8561)
* Add err.sh for incompatible href and as
* Add note for only showing when Link is clicked | packages/next-server/lib/router/router.ts | @@ -314,7 +314,7 @@ export default class Router implements BaseRouter {
const routeMatch = getRouteMatcher(rr)(asPathname)
if (!routeMatch) {
console.error(
- "Your `<Link>`'s `as` value is incompatible with the `href` value. This is invalid."
+ 'The provided `as` valu... | true |
Other | vercel | next.js | c6ec289c55063b4e7a8eb0ad78df93660cbbefd7.json | Fix typo in link in example's README (#8545) | examples/with-jest-react-testing-library/README.md | @@ -17,7 +17,7 @@ yarn create next-app --example with-jest-react-testing-library with-rtl-app
Download the example:
```bash
-curl https://codeload.github.com/zeit/next.js/tar.gz/canary | tar -xz --strip=2 next.js-canary/examples/with-jest
+curl https://codeload.github.com/zeit/next.js/tar.gz/canary | tar -xz --stri... | false |
Other | vercel | next.js | bb0ccd9a4d9e3c59aa6b7dbc68e7b3327598e8ed.json | Specify loader paths for PnP support (#8531)
* fix(next): Loader not found using yarn v2
* Use Object.fromKeys pattern instead | packages/next/build/webpack-config.ts | @@ -422,8 +422,24 @@ export default async function getBaseWebpackConfig(
performance: false,
resolve: resolveConfig,
resolveLoader: {
+ // The loaders Next.js provides
+ alias: [
+ 'emit-file-loader',
+ 'next-babel-loader',
+ 'next-client-pages-loader',
+ 'next-data-... | false |
Other | vercel | next.js | 509d160318af776d782b65aa994140e71c6b4b37.json | Normalize errors to use nextjs.org (#8518) | errors/api-routes-static-export.md | @@ -10,4 +10,4 @@ Remove any paths using API routes from your `exportPathMap` in `next.config.js`.
### Useful Links
-- [Static HTML export](https://github.com/zeit/next.js#static-html-export)
+- [Static HTML export](https://nextjs.org/docs#static-html-export) | true |
Other | vercel | next.js | 509d160318af776d782b65aa994140e71c6b4b37.json | Normalize errors to use nextjs.org (#8518) | errors/build-dir-not-writeable.md | @@ -2,7 +2,7 @@
#### Why This Error Occurred
-The filesystem does not allow writing to the specified directory. A common cause for this error is starting a [custom server](https://github.com/zeit/next.js#custom-server-and-routing) in development mode on a production server, for example, [now.sh](https://zeit.co) w... | true |
Other | vercel | next.js | 509d160318af776d782b65aa994140e71c6b4b37.json | Normalize errors to use nextjs.org (#8518) | errors/export-path-mismatch.md | @@ -23,4 +23,4 @@ module.exports = {
### Useful Links
-- [exportPathMap](https://github.com/zeit/next.js#usage) documentation
+- [exportPathMap](https://nextjs.org/docs#usage) documentation | true |
Other | vercel | next.js | 509d160318af776d782b65aa994140e71c6b4b37.json | Normalize errors to use nextjs.org (#8518) | errors/get-initial-props-as-an-instance-method.md | @@ -36,4 +36,4 @@ export default YourEntryComponent
### Useful Links
-- [Fetching data and component lifecycle](https://github.com/zeit/next.js#fetching-data-and-component-lifecycle)
+- [Fetching data and component lifecycle](https://nextjs.org/docs#fetching-data-and-component-lifecycle) | true |
Other | vercel | next.js | 509d160318af776d782b65aa994140e71c6b4b37.json | Normalize errors to use nextjs.org (#8518) | errors/invalid-page-config.md | @@ -22,5 +22,5 @@ export const config = { amp: true }
### Useful Links
-- [Enabling AMP Support](https://github.com/zeit/next.js/#enabling-amp-support)
-- [API Middlewares](https://github.com/zeit/next.js/#api-middlewares)
+- [Enabling AMP Support](https://nextjs.org/docs#enabling-amp-support)
+- [API Middlewares]... | true |
Other | vercel | next.js | 509d160318af776d782b65aa994140e71c6b4b37.json | Normalize errors to use nextjs.org (#8518) | errors/opt-out-automatic-prerendering.md | @@ -2,16 +2,16 @@
#### Why This Warning Occurred
-You are using `getInitialProps` in your [Custom `<App>`](https://github.com/zeit/next.js#custom-app).
+You are using `getInitialProps` in your [Custom `<App>`](https://nextjs.org/docs#custom-app).
-This causes **all pages** to be executed on the server -- disabli... | true |
Other | vercel | next.js | 17b1154d9bba1ce4d26a44d8542af67f5f8bae6f.json | Remove _app from with-apollo example (#8504)
* Remove _app from with-apollo example
This allows automatic static optimization for pages, that don’t need apollo.
* Rename with-apollo
Name should be same as hoc
* Adjust text to reflect latest changes
more info: 4321c469466160d13bcd52afa099385e84a112a0 | examples/with-apollo/README.md | @@ -45,7 +45,7 @@ now
[Apollo](https://www.apollographql.com/client/) is a GraphQL client that allows you to easily query the exact data you need from a GraphQL server. In addition to fetching and mutating data, Apollo analyzes your queries and their results to construct a client-side cache of your data, which is ke... | true |
Other | vercel | next.js | 17b1154d9bba1ce4d26a44d8542af67f5f8bae6f.json | Remove _app from with-apollo example (#8504)
* Remove _app from with-apollo example
This allows automatic static optimization for pages, that don’t need apollo.
* Rename with-apollo
Name should be same as hoc
* Adjust text to reflect latest changes
more info: 4321c469466160d13bcd52afa099385e84a112a0 | examples/with-apollo/lib/with-apollo.js | @@ -2,25 +2,35 @@ import React from 'react'
import initApollo from './init-apollo'
import Head from 'next/head'
import { getDataFromTree } from '@apollo/react-ssr'
+import { getDisplayName } from 'next-server/dist/lib/utils'
+import { ApolloProvider } from '@apollo/react-hooks'
+
+const withApollo = PageComponent =>... | true |
Other | vercel | next.js | 17b1154d9bba1ce4d26a44d8542af67f5f8bae6f.json | Remove _app from with-apollo example (#8504)
* Remove _app from with-apollo example
This allows automatic static optimization for pages, that don’t need apollo.
* Rename with-apollo
Name should be same as hoc
* Adjust text to reflect latest changes
more info: 4321c469466160d13bcd52afa099385e84a112a0 | examples/with-apollo/pages/_app.js | @@ -1,17 +0,0 @@
-import App from 'next/app'
-import React from 'react'
-import { ApolloProvider } from '@apollo/react-hooks'
-import withApolloClient from '../lib/with-apollo-client'
-
-class MyApp extends App {
- render () {
- const { Component, pageProps, apolloClient } = this.props
- return (
- <ApolloP... | true |
Other | vercel | next.js | 17b1154d9bba1ce4d26a44d8542af67f5f8bae6f.json | Remove _app from with-apollo example (#8504)
* Remove _app from with-apollo example
This allows automatic static optimization for pages, that don’t need apollo.
* Rename with-apollo
Name should be same as hoc
* Adjust text to reflect latest changes
more info: 4321c469466160d13bcd52afa099385e84a112a0 | examples/with-apollo/pages/about.js | @@ -16,14 +16,14 @@ export default () => (
</p>
<p>
In this simple example, we integrate Apollo seamlessly with{' '}
- <a href='https://github.com/zeit/next.js'>Next</a> by wrapping our App component
- inside a{' '}
+ <a href='https://github.com/zeit/next.js'>Next</a> by wrap... | true |
Other | vercel | next.js | 17b1154d9bba1ce4d26a44d8542af67f5f8bae6f.json | Remove _app from with-apollo example (#8504)
* Remove _app from with-apollo example
This allows automatic static optimization for pages, that don’t need apollo.
* Rename with-apollo
Name should be same as hoc
* Adjust text to reflect latest changes
more info: 4321c469466160d13bcd52afa099385e84a112a0 | examples/with-apollo/pages/index.js | @@ -2,11 +2,14 @@ import App from '../components/App'
import Header from '../components/Header'
import Submit from '../components/Submit'
import PostList from '../components/PostList'
+import withApollo from '../lib/with-apollo'
-export default () => (
+const IndexPage = props => (
<App>
<Header />
<S... | true |
Other | vercel | next.js | af9099c2a531df22b36eb50607c264808da09f80.json | Add missing dependency to next-server (#8507) | packages/next-server/package.json | @@ -40,6 +40,7 @@
},
"dependencies": {
"@ampproject/toolbox-optimizer": "1.0.1",
+ "chalk": "2.4.2",
"compression": "1.7.4",
"content-type": "1.0.4",
"cookie": "0.4.0", | false |
Other | vercel | next.js | f81b6d56e03d3f883e8c5faebae44208bd1a328b.json | Replace worker-farm with jest-worker (#8496)
* Replace worker-farm with jest-worker
* Apply suggestions from code review
Co-Authored-By: Joe Haddad <joe.haddad@zeit.co>
* Remove semaphores on top of jest-worker, unwind
terser worker, and remove extra error log | packages/next/build/index.ts | @@ -1,4 +1,3 @@
-import { Sema } from 'async-sema'
import chalk from 'chalk'
import fs from 'fs'
import mkdirpOrig from 'mkdirp'
@@ -15,7 +14,7 @@ import loadConfig, {
import nanoid from 'next/dist/compiled/nanoid/index.js'
import path from 'path'
import { promisify } from 'util'
-import workerFarm from 'worker-f... | true |
Other | vercel | next.js | f81b6d56e03d3f883e8c5faebae44208bd1a328b.json | Replace worker-farm with jest-worker (#8496)
* Replace worker-farm with jest-worker
* Apply suggestions from code review
Co-Authored-By: Joe Haddad <joe.haddad@zeit.co>
* Remove semaphores on top of jest-worker, unwind
terser worker, and remove extra error log | packages/next/build/static-checker.ts | @@ -1,14 +1,9 @@
import { isPageStatic } from './utils'
-export default function worker(
- options: any,
- callback: (err: Error | null, data?: any) => void
-) {
- try {
- const { serverBundle, runtimeEnvConfig } = options || ({} as any)
- const result = isPageStatic(serverBundle, runtimeEnvConfig)
- cal... | true |
Other | vercel | next.js | f81b6d56e03d3f883e8c5faebae44208bd1a328b.json | Replace worker-farm with jest-worker (#8496)
* Replace worker-farm with jest-worker
* Apply suggestions from code review
Co-Authored-By: Joe Haddad <joe.haddad@zeit.co>
* Remove semaphores on top of jest-worker, unwind
terser worker, and remove extra error log | packages/next/build/webpack/plugins/terser-webpack-plugin/src/TaskRunner.js | @@ -1,13 +1,11 @@
import { join } from 'path'
import minify from './minify'
import { promisify } from 'util'
-import workerFarm from 'worker-farm'
+import Worker from 'jest-worker'
import { writeFile, readFile } from 'fs'
-import serialize from 'serialize-javascript'
-import { Sema } from 'async-sema'
import mkdir... | true |
Other | vercel | next.js | f81b6d56e03d3f883e8c5faebae44208bd1a328b.json | Replace worker-farm with jest-worker (#8496)
* Replace worker-farm with jest-worker
* Apply suggestions from code review
Co-Authored-By: Joe Haddad <joe.haddad@zeit.co>
* Remove semaphores on top of jest-worker, unwind
terser worker, and remove extra error log | packages/next/build/webpack/plugins/terser-webpack-plugin/src/worker.js | @@ -1,21 +0,0 @@
-import minify from './minify'
-
-module.exports = (options, callback) => {
- try {
- // 'use strict' => this === undefined (Clean Scope)
- // Safer for possible security issues, albeit not critical at all here
- // eslint-disable-next-line no-new-func, no-param-reassign
- options = new Fu... | true |
Other | vercel | next.js | f81b6d56e03d3f883e8c5faebae44208bd1a328b.json | Replace worker-farm with jest-worker (#8496)
* Replace worker-farm with jest-worker
* Apply suggestions from code review
Co-Authored-By: Joe Haddad <joe.haddad@zeit.co>
* Remove semaphores on top of jest-worker, unwind
terser worker, and remove extra error log | packages/next/package.json | @@ -80,6 +80,7 @@
"find-up": "4.0.0",
"fork-ts-checker-webpack-plugin": "1.3.4",
"fresh": "0.5.2",
+ "jest-worker": "24.9.0",
"launch-editor": "2.2.1",
"loader-utils": "1.2.3",
"mkdirp": "0.5.1",
@@ -88,7 +89,6 @@
"prop-types-exact": "1.2.0",
"react-error-overlay": "5.1.6",
... | true |
Other | vercel | next.js | f81b6d56e03d3f883e8c5faebae44208bd1a328b.json | Replace worker-farm with jest-worker (#8496)
* Replace worker-farm with jest-worker
* Apply suggestions from code review
Co-Authored-By: Joe Haddad <joe.haddad@zeit.co>
* Remove semaphores on top of jest-worker, unwind
terser worker, and remove extra error log | yarn.lock | @@ -8345,6 +8345,14 @@ jest-watcher@^24.8.0:
jest-util "^24.8.0"
string-length "^2.0.0"
+jest-worker@24.9.0:
+ version "24.9.0"
+ resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-24.9.0.tgz#5dbfdb5b2d322e98567898238a9697bcce67b3e5"
+ integrity sha512-51PE4haMSXcHohnSMdM42anbvZANYTqMrr52tV... | true |
Other | vercel | next.js | 010059915da401f63b56dc8e9355bb9ce7c2fc3e.json | Add version property to Next.js instance (#8499)
* adds global for next version
* updates to use env variable and keeps it local
* Test Next.js version presence
* Unfocus test | packages/next/client/index.js | @@ -30,6 +30,8 @@ if (!window.Promise) {
const data = JSON.parse(document.getElementById('__NEXT_DATA__').textContent)
window.__NEXT_DATA__ = data
+export const version = process.env.__NEXT_VERSION
+
const {
props,
err, | true |
Other | vercel | next.js | 010059915da401f63b56dc8e9355bb9ce7c2fc3e.json | Add version property to Next.js instance (#8499)
* adds global for next version
* updates to use env variable and keeps it local
* Test Next.js version presence
* Unfocus test | test/integration/production/test/index.test.js | @@ -586,6 +586,20 @@ describe('Production Usage', () => {
expect(existsSync(join(appDir, '.next', 'profile-events.json'))).toBe(false)
})
+ it('should contain the Next.js version in window export', async () => {
+ let browser
+ try {
+ browser = await webdriver(appPort, '/about')
+ const vers... | true |
Other | vercel | next.js | 12c211bdbe20a6584afba52e670235fc9332bb0a.json | Add config for diffing fetched pages (#8492) | test/.stats-app/stats-config.js | @@ -24,6 +24,10 @@ const clientGlobs = [
{
name: 'Client Build Manifests',
globs: ['.next/static/*/_buildManifest*']
+ },
+ {
+ name: 'Rendered Page Sizes',
+ globs: ['fetched-pages/**/*.html']
}
]
@@ -114,9 +118,10 @@ module.exports = {
}
],
filesToTrack: clientGlobs,
... | false |
Other | vercel | next.js | 1dbacda5760f03eb2e9bf8fe9a782415d0b41394.json | Remove extension from err.sh link (#8500)
* Remove extensions from err.sh link
* Remove .md from test also | packages/next-server/server/config.ts | @@ -89,7 +89,7 @@ function normalizeConfig(phase: string, config: any) {
if (typeof config.then === 'function') {
throw new Error(
- '> Promise returned in next config. https://err.sh/zeit/next.js/promise-in-next-config.md'
+ '> Promise returned in next config. https://err.sh/zeit/next.js/pr... | true |
Other | vercel | next.js | 1dbacda5760f03eb2e9bf8fe9a782415d0b41394.json | Remove extension from err.sh link (#8500)
* Remove extensions from err.sh link
* Remove .md from test also | test/integration/config-promise-error/test/index.test.js | @@ -24,7 +24,7 @@ describe('Promise in next config', () => {
)
expect(stderr).toMatch(
- /Error: > Promise returned in next config\. https:\/\/err\.sh\/zeit\/next\.js\/promise-in-next-config\.md/
+ /Error: > Promise returned in next config\. https:\/\/err\.sh\/zeit\/next\.js\/promise-in-next-confi... | true |
Other | vercel | next.js | 5396ab473a5aa13fa7f15487d3a521bcb23b80cc.json | Remove front from examples | examples/front | @@ -1 +0,0 @@
-Subproject commit b7e21d6de6110ac8a969b53dc9ad11d80aa49eba | false |
Other | vercel | next.js | a9325f123aa9aa9d8d0ee280d11b1c0e305c9901.json | Remove prefetch attributes from examples (#8481)
* Remove prefetch from with-apollo-and-redux-saga example
Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://err.sh/zeit/next.js/prefetch-true-deprecated
* Remove prefetch from using-inferno example
Next... | examples/data-fetch/pages/index.js | @@ -14,7 +14,7 @@ export default class Index extends React.Component {
return (
<div>
<p>Next.js has {this.props.stars} ⭐️</p>
- <Link prefetch href='/preact'>
+ <Link href='/preact'>
<a>How about preact?</a>
</Link>
</div> | true |
Other | vercel | next.js | a9325f123aa9aa9d8d0ee280d11b1c0e305c9901.json | Remove prefetch attributes from examples (#8481)
* Remove prefetch from with-apollo-and-redux-saga example
Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://err.sh/zeit/next.js/prefetch-true-deprecated
* Remove prefetch from using-inferno example
Next... | examples/data-fetch/pages/preact.js | @@ -14,7 +14,7 @@ export default class Preact extends React.Component {
return (
<div>
<p>Preact has {this.props.stars} ⭝</p>
- <Link prefetch href='/'>
+ <Link href='/'>
<a>I bet next has more stars (?)</a>
</Link>
</div> | true |
Other | vercel | next.js | a9325f123aa9aa9d8d0ee280d11b1c0e305c9901.json | Remove prefetch attributes from examples (#8481)
* Remove prefetch from with-apollo-and-redux-saga example
Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://err.sh/zeit/next.js/prefetch-true-deprecated
* Remove prefetch from using-inferno example
Next... | examples/using-inferno/pages/index.js | @@ -4,7 +4,7 @@ import Link from 'next/link'
export default () => (
<div>
Hello World.{' '}
- <Link prefetch href='/about'>
+ <Link href='/about'>
<a>About</a>
</Link>
</div> | true |
Other | vercel | next.js | a9325f123aa9aa9d8d0ee280d11b1c0e305c9901.json | Remove prefetch attributes from examples (#8481)
* Remove prefetch from with-apollo-and-redux-saga example
Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://err.sh/zeit/next.js/prefetch-true-deprecated
* Remove prefetch from using-inferno example
Next... | examples/with-apollo-and-redux-saga/components/Header.js | @@ -3,13 +3,13 @@ import { withRouter } from 'next/router'
const Header = ({ router: { pathname } }) => (
<header>
- <Link prefetch href='/'>
+ <Link href='/'>
<a className={pathname === '/' ? 'is-active' : ''}>Home</a>
</Link>
- <Link prefetch href='/about'>
+ <Link href='/about'>
... | true |
Other | vercel | next.js | a9325f123aa9aa9d8d0ee280d11b1c0e305c9901.json | Remove prefetch attributes from examples (#8481)
* Remove prefetch from with-apollo-and-redux-saga example
Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://err.sh/zeit/next.js/prefetch-true-deprecated
* Remove prefetch from using-inferno example
Next... | examples/with-apollo-and-redux/components/Header.js | @@ -3,13 +3,13 @@ import { withRouter } from 'next/router'
const Header = ({ router: { pathname } }) => (
<header>
- <Link prefetch href='/'>
+ <Link href='/'>
<a className={pathname === '/' ? 'is-active' : ''}>Home</a>
</Link>
- <Link prefetch href='/apollo'>
+ <Link href='/apollo'>
... | true |
Other | vercel | next.js | a9325f123aa9aa9d8d0ee280d11b1c0e305c9901.json | Remove prefetch attributes from examples (#8481)
* Remove prefetch from with-apollo-and-redux-saga example
Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://err.sh/zeit/next.js/prefetch-true-deprecated
* Remove prefetch from using-inferno example
Next... | examples/with-apollo-auth/pages/create-account.js | @@ -26,7 +26,7 @@ export default class CreateAccount extends React.Component {
<RegisterBox />
<hr />
Already have an account?{' '}
- <Link prefetch href='/signin'>
+ <Link href='/signin'>
<a>Sign in</a>
</Link>
</> | true |
Other | vercel | next.js | a9325f123aa9aa9d8d0ee280d11b1c0e305c9901.json | Remove prefetch attributes from examples (#8481)
* Remove prefetch from with-apollo-and-redux-saga example
Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://err.sh/zeit/next.js/prefetch-true-deprecated
* Remove prefetch from using-inferno example
Next... | examples/with-apollo-auth/pages/signin.js | @@ -26,7 +26,7 @@ export default class Signin extends React.Component {
<SigninBox />
<hr />
New?{' '}
- <Link prefetch href='/create-account'>
+ <Link href='/create-account'>
<a>Create account</a>
</Link>
</React.Fragment> | true |
Other | vercel | next.js | a9325f123aa9aa9d8d0ee280d11b1c0e305c9901.json | Remove prefetch attributes from examples (#8481)
* Remove prefetch from with-apollo-and-redux-saga example
Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://err.sh/zeit/next.js/prefetch-true-deprecated
* Remove prefetch from using-inferno example
Next... | examples/with-graphql-hooks/components/header.js | @@ -3,10 +3,10 @@ import { withRouter } from 'next/router'
const Header = ({ router: { pathname } }) => (
<header>
- <Link prefetch href='/'>
+ <Link href='/'>
<a className={pathname === '/' ? 'is-active' : ''}>Home</a>
</Link>
- <Link prefetch href='/about'>
+ <Link href='/about'>
... | true |
Other | vercel | next.js | a9325f123aa9aa9d8d0ee280d11b1c0e305c9901.json | Remove prefetch attributes from examples (#8481)
* Remove prefetch from with-apollo-and-redux-saga example
Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://err.sh/zeit/next.js/prefetch-true-deprecated
* Remove prefetch from using-inferno example
Next... | examples/with-tailwindcss/components/nav.js | @@ -10,7 +10,7 @@ export default function Nav () {
<nav>
<ul className='flex justify-between items-center p-8'>
<li>
- <Link prefetch href='/'>
+ <Link href='/'>
<a className='text-blue-500 no-underline'>Home</a>
</Link>
</li> | true |
Other | vercel | next.js | 4a864ca951aeb180cab896d6efa983c008daf1a0.json | fix duplicate spaces in readme (#8484) | packages/next/README.md | @@ -17,7 +17,7 @@
<p align="center">
<strong>
- Visit <a aria-label="next.js learn" href="https://nextjs.org/learn">https://nextjs.org/learn</a> to get started with Next.js.
+ Visit <a aria-label="next.js learn" href="https://nextjs.org/learn">https://nextjs.org/learn</a> to get started with Next.js.
</... | false |
Other | vercel | next.js | bf114219927f804b80df1a03003ff32c25150357.json | Add deprecation warning for App Container (#8475)
* Add deprecation warning for App Container
* Apply suggestions from code review
Co-Authored-By: Joe Haddad <joe.haddad@zeit.co>
* Tweak for more dead-code elimination | errors/app-container-deprecated.md | @@ -0,0 +1,44 @@
+# App Container Deprecated
+
+#### Why This Error Occurred
+
+In versions prior to v9.0.4 the `<Container>` component was used in `./pages/_app.js` to handle scrolling to hashes.
+This handling has been moved up the tree so the `<Container>` component is no longer needed in your custom `<App>`!
+
+###... | true |
Other | vercel | next.js | bf114219927f804b80df1a03003ff32c25150357.json | Add deprecation warning for App Container (#8475)
* Add deprecation warning for App Container
* Apply suggestions from code review
Co-Authored-By: Joe Haddad <joe.haddad@zeit.co>
* Tweak for more dead-code elimination | packages/next/pages/_app.tsx | @@ -57,56 +57,66 @@ export default class App<P = {}, CP = {}, S = {}> extends React.Component<
}
}
-// @deprecated noop for now until removal
-export function Container(p: any) {
- return p.children
-}
+let warnContainer: () => void
+let warnUrl: () => void
-const warnUrl = execOnce(() => {
- if (process.env.... | true |
Other | vercel | next.js | bf114219927f804b80df1a03003ff32c25150357.json | Add deprecation warning for App Container (#8475)
* Add deprecation warning for App Container
* Apply suggestions from code review
Co-Authored-By: Joe Haddad <joe.haddad@zeit.co>
* Tweak for more dead-code elimination | test/integration/app-aspath/pages/_app.js | @@ -1,5 +1,5 @@
import React from 'react'
-import App, { Container } from 'next/app'
+import App from 'next/app'
export default class MyApp extends App {
// find this
@@ -11,10 +11,6 @@ export default class MyApp extends App {
render () {
const { Component, url } = this.props
- return (
- <Cont... | true |
Other | vercel | next.js | bf114219927f804b80df1a03003ff32c25150357.json | Add deprecation warning for App Container (#8475)
* Add deprecation warning for App Container
* Apply suggestions from code review
Co-Authored-By: Joe Haddad <joe.haddad@zeit.co>
* Tweak for more dead-code elimination | test/integration/app-document/pages/_app.js | @@ -1,4 +1,4 @@
-import App, { Container } from 'next/app'
+import App from 'next/app'
import React from 'react'
import { setState } from '../shared-module'
@@ -42,11 +42,9 @@ export default class MyApp extends App {
render () {
const { Component, pageProps } = this.props
return (
- <Container>
- ... | true |
Other | vercel | next.js | bf114219927f804b80df1a03003ff32c25150357.json | Add deprecation warning for App Container (#8475)
* Add deprecation warning for App Container
* Apply suggestions from code review
Co-Authored-By: Joe Haddad <joe.haddad@zeit.co>
* Tweak for more dead-code elimination | test/integration/app-tree/pages/_app.tsx | @@ -1,7 +1,7 @@
import React from 'react'
import Link from 'next/link'
import { render } from 'react-dom'
-import App, { Container, AppContext } from 'next/app'
+import App, { AppContext } from 'next/app'
import { renderToString } from 'react-dom/server'
class MyApp<P = {}> extends App<P & { html: string }> {
@@... | true |
Other | vercel | next.js | bf114219927f804b80df1a03003ff32c25150357.json | Add deprecation warning for App Container (#8475)
* Add deprecation warning for App Container
* Apply suggestions from code review
Co-Authored-By: Joe Haddad <joe.haddad@zeit.co>
* Tweak for more dead-code elimination | test/integration/no-override-next-props/pages/_app.js | @@ -1,5 +1,5 @@
import React from 'react'
-import App, { Container } from 'next/app'
+import App from 'next/app'
class MyApp extends App {
static async getInitialProps ({ Component, ctx }) {
@@ -14,12 +14,7 @@ class MyApp extends App {
render () {
const { Component, pageProps } = this.props
-
- retu... | true |
Other | vercel | next.js | bf114219927f804b80df1a03003ff32c25150357.json | Add deprecation warning for App Container (#8475)
* Add deprecation warning for App Container
* Apply suggestions from code review
Co-Authored-By: Joe Haddad <joe.haddad@zeit.co>
* Tweak for more dead-code elimination | test/integration/production-config/pages/_app.js | @@ -1,15 +1,11 @@
-import App, { Container } from 'next/app'
+import App from 'next/app'
import React from 'react'
import '../styles.css'
export default class MyApp extends App {
render () {
const { Component, pageProps } = this.props
- return (
- <Container>
- <Component {...pageProps} />... | true |
Other | vercel | next.js | bf114219927f804b80df1a03003ff32c25150357.json | Add deprecation warning for App Container (#8475)
* Add deprecation warning for App Container
* Apply suggestions from code review
Co-Authored-By: Joe Haddad <joe.haddad@zeit.co>
* Tweak for more dead-code elimination | test/integration/with-router/pages/_app.js | @@ -1,4 +1,4 @@
-import App, { Container } from 'next/app'
+import App from 'next/app'
import React from 'react'
import HeaderNav from '../components/header-nav'
@@ -16,10 +16,10 @@ export default class MyApp extends App {
render () {
const { Component, pageProps } = this.props
return (
- <Contain... | true |
Other | vercel | next.js | c3b18fdeaa0253e1c49374a89b6599798c48ec8f.json | Fix a broken link in webpack config (#8456)
* Fix a broken link in webpack config
* Update test | packages/next/build/webpack-config.ts | @@ -643,7 +643,7 @@ export default async function getBaseWebpackConfig(
// @ts-ignore: Property 'then' does not exist on type 'Configuration'
if (typeof webpackConfig.then === 'function') {
console.warn(
- '> Promise returned in next config. https://err.sh/zeit/next.js/promise-in-next-config.md'... | true |
Other | vercel | next.js | c3b18fdeaa0253e1c49374a89b6599798c48ec8f.json | Fix a broken link in webpack config (#8456)
* Fix a broken link in webpack config
* Update test | test/integration/config-promise-error/test/index.test.js | @@ -46,7 +46,7 @@ describe('Promise in next config', () => {
)
expect(stderr).toMatch(
- /> Promise returned in next config\. https:\/\/err\.sh\/zeit\/next\.js\/promise-in-next-config\.md/
+ /> Promise returned in next config\. https:\/\/err\.sh\/zeit\/next\.js\/promise-in-next-config/
)
}... | true |
Other | vercel | next.js | 878a92f1019905fc3ef639a42f1fbb897e5890a4.json | Remove Duplicate Assignment (#8464) | packages/next-server/server/render.tsx | @@ -58,7 +58,6 @@ class ServerRouter implements NextRouter {
this.pathname = pathname
this.query = query
this.asPath = as
- this.pathname = pathname
}
push(): any {
noRouter() | false |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | packages/next-server/lib/constants.ts | @@ -6,7 +6,6 @@ export const PAGES_MANIFEST = 'pages-manifest.json'
export const BUILD_MANIFEST = 'build-manifest.json'
export const PRERENDER_MANIFEST = 'prerender-manifest.json'
export const REACT_LOADABLE_MANIFEST = 'react-loadable-manifest.json'
-export const CHUNK_GRAPH_MANIFEST = 'compilation-modules.json'
ex... | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | packages/next-server/lib/utils.ts | @@ -58,7 +58,6 @@ export type NEXT_DATA = {
page: string
query: ParsedUrlQuery
buildId: string
- dynamicBuildId: boolean
assetPrefix?: string
runtimeConfig?: { [key: string]: any }
nextExport?: boolean | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | packages/next-server/server/config.ts | @@ -36,9 +36,7 @@ const defaultConfig: { [key: string]: any } = {
(os.cpus() || { length: 1 }).length) - 1
),
ampBindInitData: false,
- terserLoader: false,
profiling: false,
- flyingShuttle: false,
documentMiddleware: false,
granularChunks: false,
publicDirectory: false, | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | packages/next-server/server/render.tsx | @@ -127,7 +127,6 @@ type RenderOpts = {
staticMarkup: boolean
buildId: string
canonicalBase: string
- dynamicBuildId?: boolean
runtimeConfig?: { [key: string]: any }
dangerousAsPath: string
assetPrefix?: string
@@ -161,7 +160,6 @@ function renderDocument(
query,
buildId,
canonicalBase,... | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | packages/next/build/entries.ts | @@ -49,7 +49,6 @@ export function createEntrypoints(
pages: PagesMapping,
target: 'server' | 'serverless' | 'experimental-serverless-trace',
buildId: string,
- dynamicBuildId: boolean,
config: any
): Entrypoints {
const client: WebpackEntrypoints = {}
@@ -64,7 +63,6 @@ export function createEntrypoints... | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | packages/next/build/flying-shuttle.ts | @@ -1,564 +0,0 @@
-import { Sema } from 'async-sema'
-import crypto from 'crypto'
-import fs from 'fs'
-import mkdirpModule from 'mkdirp'
-import { CHUNK_GRAPH_MANIFEST, PRERENDER_MANIFEST } from 'next-server/constants'
-import { EOL } from 'os'
-import path from 'path'
-import { promisify } from 'util'
-
-import { rec... | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | packages/next/build/index.ts | @@ -3,7 +3,6 @@ import chalk from 'chalk'
import fs from 'fs'
import mkdirpOrig from 'mkdirp'
import {
- CHUNK_GRAPH_MANIFEST,
PAGES_MANIFEST,
PHASE_PRODUCTION_BUILD,
PRERENDER_MANIFEST,
@@ -23,24 +22,17 @@ import { recursiveDelete } from '../lib/recursive-delete'
import { verifyTypeScriptSetup } from '..... | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | packages/next/build/utils.ts | @@ -1,6 +1,4 @@
import chalk from 'chalk'
-import crypto from 'crypto'
-import findUp from 'find-up'
import fs from 'fs'
import textTable from 'next/dist/compiled/text-table'
import path from 'path'
@@ -10,11 +8,9 @@ import { promisify } from 'util'
import { isValidElementType } from 'react-is'
import prettyBytes... | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | packages/next/build/webpack-config.ts | @@ -19,20 +19,17 @@ import {
} from '../lib/constants'
import { fileExists } from '../lib/file-exists'
import { WebpackEntrypoints } from './entries'
-import { AllModulesIdentifiedPlugin } from './webpack/plugins/all-modules-identified-plugin'
import BuildManifestPlugin from './webpack/plugins/build-manifest-plugin... | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | packages/next/build/webpack/loaders/next-minify-loader.ts | @@ -1,23 +0,0 @@
-import loaderUtils from 'loader-utils'
-import { loader } from 'webpack'
-import minify from '../plugins/terser-webpack-plugin/src/minify'
-
-const nextMiniferLoader: loader.Loader = function(source) {
- this.cacheable()
-
- const options = loaderUtils.getOptions(this) || {}
- const { error, code }... | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | packages/next/build/webpack/loaders/next-serverless-loader.ts | @@ -15,7 +15,6 @@ export type ServerlessLoaderQuery = {
assetPrefix: string
ampBindInitData: boolean | string
generateEtags: string
- dynamicBuildId?: string | boolean
canonicalBase: string
}
@@ -31,7 +30,6 @@ const nextServerlessLoader: loader.Loader = function() {
absoluteDocumentPath,
absol... | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | packages/next/build/webpack/plugins/all-modules-identified-plugin.ts | @@ -1,107 +0,0 @@
-import { Compiler, Plugin } from 'webpack'
-import { createHash } from 'crypto'
-import path from 'path'
-
-/**
- * From escape-string-regexp: https://github.com/sindresorhus/escape-string-regexp
- * brought here to reduce the bundle size
- * MIT License
- * Copyright (c) Sindre Sorhus <sindresorhus@... | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | packages/next/build/webpack/plugins/chunk-graph-plugin.ts | @@ -1,7 +1,4 @@
-import { createHash } from 'crypto'
-import fs from 'fs'
import { CLIENT_STATIC_FILES_RUNTIME_MAIN } from 'next-server/constants'
-import { EOL } from 'os'
import path from 'path'
import { parse } from 'querystring'
import { Compiler, Plugin } from 'webpack'
@@ -80,45 +77,6 @@ export function getPa... | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | packages/next/build/webpack/plugins/hashed-chunk-ids-plugin.ts | @@ -1,36 +0,0 @@
-import { Compiler, Plugin } from 'webpack'
-import { createHash } from 'crypto'
-
-export class HashedChunkIdsPlugin implements Plugin {
- buildId: string
-
- constructor(buildId: string) {
- this.buildId = buildId
- }
-
- apply(compiler: Compiler) {
- compiler.hooks.compilation.tap('HashedC... | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | packages/next/build/webpack/plugins/serverless-plugin.ts | @@ -55,38 +55,18 @@ export class ServerlessPlugin {
private buildId: string
private isServer: boolean
private isTrace: boolean
- private isFlyingShuttle: boolean
constructor(
buildId: string,
- {
- isServer,
- isTrace,
- isFlyingShuttle,
- }: { isServer: boolean; isTrace: boolea... | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | packages/next/build/webpack/plugins/shared-runtime-plugin.ts | @@ -1,35 +0,0 @@
-import { Compiler, Plugin } from 'webpack'
-
-export class SharedRuntimePlugin implements Plugin {
- apply(compiler: Compiler) {
- const installedModules = [
- '// The module cache',
- 'var installedModules = {};',
- ].join('\n')
- const nextInstalledModules = [
- '// The Next... | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | packages/next/build/write-build-id.ts | @@ -1,20 +1,14 @@
import fs from 'fs'
import { promisify } from 'util'
import { join } from 'path'
-import { BUILD_ID_FILE, HEAD_BUILD_ID_FILE } from 'next-server/constants'
+import { BUILD_ID_FILE } from 'next-server/constants'
const writeFile = promisify(fs.writeFile)
export async function writeBuildId(
d... | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | packages/next/client/index.js | @@ -36,7 +36,6 @@ const {
page,
query,
buildId,
- dynamicBuildId,
assetPrefix,
runtimeConfig,
dynamicIds
@@ -162,12 +161,6 @@ export default async ({ webpackHMR: passedWebpackHMR } = {}) => {
await window.__NEXT_PRELOADREADY(dynamicIds)
}
- if (process.env.__NEXT_EXPERIMENTAL_SELECTIVEPAGE... | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | packages/next/client/page-loader.js | @@ -28,7 +28,6 @@ export default class PageLoader {
this.pageCache = {}
this.pageRegisterEvents = mitt()
this.loadingRoutes = {}
- this.promisedBuildId = Promise.resolve()
if (process.env.__NEXT_GRANULAR_CHUNKS) {
this.promisedBuildManifest = new Promise(resolve => {
if (window.__... | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | packages/next/pages/_document.tsx | @@ -235,7 +235,7 @@ export class Head extends Component<
dangerousAsPath,
} = this.context._documentProps
const { _devOnlyInvalidateCacheQueryString } = this.context
- const { page, buildId, dynamicBuildId } = __NEXT_DATA__
+ const { page, buildId } = __NEXT_DATA__
let { head } = this.cont... | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | packages/next/server/hot-reloader.js | @@ -218,7 +218,6 @@ export default class HotReloader {
pages,
'server',
this.buildId,
- false,
this.config
)
| true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | packages/next/types/webpack.d.ts | @@ -802,6 +802,7 @@ declare module 'webpack' {
portableRecords?: boolean
/** Tells webpack which algorithm to use when choosing chunk ids. */
chunkIds?: false | 'natural' | 'named' | 'size' | 'total-size'
+ checkWasmTypes?: boolean
}
}
| true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | test/integration/auto-export-fs/next.config.js | @@ -1,6 +0,0 @@
-module.exports = {
- target: 'serverless',
- experimental: {
- flyingShuttle: true
- }
-} | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | test/integration/auto-export-fs/pages/123/hello.js | @@ -1 +0,0 @@
-export default () => <p>hello 123</p> | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | test/integration/auto-export-fs/pages/abc.js | @@ -1 +0,0 @@
-export default () => <p>hello abc</p> | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | test/integration/auto-export-fs/pages/another.js | @@ -1 +0,0 @@
-export default () => <p>hello another</p> | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | test/integration/auto-export-fs/test/index.test.js | @@ -1,110 +0,0 @@
-/* eslint-env jest */
-/* global jasmine */
-import path from 'path'
-import fs from 'fs-extra'
-import {
- nextBuild,
- nextStart,
- findPort,
- renderViaHTTP,
- killApp
-} from 'next-test-utils'
-
-jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5
-const appDir = path.join(__dirname, '..')
-let... | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | test/integration/flying-shuttle/components/head.js | @@ -1,44 +0,0 @@
-import React from 'react'
-import NextHead from 'next/head'
-import { string } from 'prop-types'
-
-const defaultDescription = ''
-const defaultOGURL = ''
-const defaultOGImage = ''
-
-const Head = props => (
- <NextHead>
- <meta charSet='UTF-8' />
- <title>{props.title || ''}</title>
- <met... | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | test/integration/flying-shuttle/components/nav.js | @@ -1,53 +0,0 @@
-import React from 'react'
-import Link from 'next/link'
-
-const Nav = () => (
- <nav>
- <ul>
- <li>
- <Link prefetch href='/'>
- <a>Home</a>
- </Link>
- </li>
- <li>
- <Link prefetch href='/other'>
- <a>Other</a>
- </Link>
- </li>
... | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | test/integration/flying-shuttle/components/something.js | @@ -1,10 +0,0 @@
-import dynamic from 'next/dynamic'
-
-const DynamicComponent = dynamic(() => import('./something2'))
-
-export default () => (
- <>
- <div>lol</div>
- <DynamicComponent />
- </>
-) | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | test/integration/flying-shuttle/components/something2.js | @@ -1 +0,0 @@
-export default () => <div>omega lol</div> | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | test/integration/flying-shuttle/next.config.js | @@ -1,6 +0,0 @@
-module.exports = {
- target: 'serverless',
- experimental: {
- flyingShuttle: true
- }
-} | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | test/integration/flying-shuttle/pages/about/index.js | @@ -1,45 +0,0 @@
-import React from 'react'
-import Head from '../../components/head'
-import Nav from '../../components/nav'
-import dynamic from 'next/dynamic'
-
-const DynamicComponent = dynamic(() => import('../../components/something'))
-
-const About = () => (
- <div>
- <Head title='About' />
- <Nav />
-
-... | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | test/integration/flying-shuttle/pages/about/index.js2 | @@ -1,45 +0,0 @@
-import React from 'react'
-import Head from '../../components/head'
-import Nav from '../../components/nav'
-import dynamic from 'next/dynamic'
-
-const DynamicComponent = dynamic(() => import('../../components/something'))
-
-const About = () => (
- <div>
- <Head title='About' />
- <Nav />
-
-... | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | test/integration/flying-shuttle/pages/index.js | @@ -1,44 +0,0 @@
-import React from 'react'
-import Head from '../components/head'
-import Nav from '../components/nav'
-import dynamic from 'next/dynamic'
-
-const DynamicComponent = dynamic(() => import('../components/something'))
-
-const Home = () => (
- <div>
- <Head title='Home' />
- <Nav />
-
- <div cl... | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | test/integration/flying-shuttle/pages/other.js | @@ -1,44 +0,0 @@
-import React from 'react'
-import Head from '../components/head'
-import Nav from '../components/nav'
-import dynamic from 'next/dynamic'
-
-const DynamicComponent = dynamic(() => import('../components/something'))
-
-const Home = () => (
- <div>
- <Head title='Other' />
- <Nav />
-
- <div c... | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | test/integration/flying-shuttle/run-server.js | @@ -1,2 +0,0 @@
-const start = require('./server')
-start(3000).then(() => console.log('http://localhost:3000')) | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | test/integration/flying-shuttle/server.js | @@ -1,44 +0,0 @@
-const express = require('express')
-const http = require('http')
-const path = require('path')
-
-module.exports = function start (
- port = 0,
- directory = path.join(__dirname, '.next')
-) {
- return new Promise((resolve, reject) => {
- const app = express()
-
- const nextStaticDir = path.j... | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | test/integration/flying-shuttle/test/index.test.js | @@ -1,217 +0,0 @@
-/* eslint-env jest */
-/* global jasmine, test */
-import webdriver from 'next-webdriver'
-import path from 'path'
-import {
- runNextCommand,
- stopApp,
- renderViaHTTP,
- waitFor
-} from 'next-test-utils'
-import stripAnsi from 'strip-ansi'
-import startServer from '../server'
-import fs from '... | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | test/unit/select-pages/__snapshots__/select-pages.test.js.snap | @@ -1,37 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`getSpecifiedPages should only choose selected 1`] = `
-Array [
- "/_app.js",
- "/_document.js",
- "/a.js",
-]
-`;
-
-exports[`getSpecifiedPages should only choose selected 2`] = `
-Array [
- "/_app.js",
- "/_document.js",
- "/a.js",
- "/b.j... | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | test/unit/select-pages/pages/_app.js | @@ -1 +0,0 @@
-// intentionally empty | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | test/unit/select-pages/pages/_document.js | @@ -1 +0,0 @@
-// intentionally empty | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | test/unit/select-pages/pages/a.js | @@ -1 +0,0 @@
-// intentionally empty | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | test/unit/select-pages/pages/b.jsx | @@ -1 +0,0 @@
-// intentionally empty | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | test/unit/select-pages/pages/c/index.mdx | @@ -1 +0,0 @@
-# intentionally empty | true |
Other | vercel | next.js | 847e892d71a5a20b36afeb40b7871491d5af4977.json | Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment
* Remove more old tests
* Remove minify loader | test/unit/select-pages/select-pages.test.js | @@ -1,31 +0,0 @@
-/* eslint-env jest */
-import { getSpecifiedPages as _getSpecifiedPages } from 'next/dist/build/utils'
-
-const getSpecifiedPages = async (...args) =>
- (await _getSpecifiedPages(...args)).map(pg => pg.replace(/\\+/g, '/'))
-
-describe('getSpecifiedPages', () => {
- it('should only choose selected',... | true |
Other | vercel | next.js | 0e01435f648d266198ed5de0a64ca1603f76c5a0.json | Change FAQ for dynamic routing (#8439) | packages/next/README.md | @@ -69,6 +69,7 @@
- [Custom server and routing](#custom-server-and-routing)
- [Disabling file-system routing](#disabling-file-system-routing)
- [Dynamic assetPrefix](#dynamic-assetprefix)
+ - [Changing x-powered-by](#changing-x-powered-by)
- [Dynamic Import](#dynamic-import)
- [Basic Usage (Also... | false |
Other | vercel | next.js | 211dad31c21c72ec5d2bea48adbbe0655b7e7404.json | Adjust experimental warning (#8432)
* Adjust experimental warning
This adds some flare to the experimental warning message.
* Update test | packages/next-server/server/config.ts | @@ -1,3 +1,4 @@
+import chalk from 'chalk'
import findUp from 'find-up'
import os from 'os'
@@ -49,8 +50,14 @@ const defaultConfig: { [key: string]: any } = {
const experimentalWarning = execOnce(() => {
console.warn(
- `\nFound experimental config:\nExperimental features can change at anytime and aren't o... | true |
Other | vercel | next.js | 211dad31c21c72ec5d2bea48adbbe0655b7e7404.json | Adjust experimental warning (#8432)
* Adjust experimental warning
This adds some flare to the experimental warning message.
* Update test | test/integration/config-experimental-warning/test/index.test.js | @@ -21,7 +21,7 @@ describe('Promise in next config', () => {
`)
const { stderr } = await nextBuild(appDir, [], { stderr: true })
- expect(stderr).not.toMatch(/Found experimental config:/)
+ expect(stderr).not.toMatch(/experimental feature/)
})
it('should not show warning with config from objec... | true |
Other | vercel | next.js | 1d9fd6a51b5662588a8a6c37300fabb178537fa2.json | Adjust Create Next App install env (#8431) | packages/create-next-app/helpers/install.ts | @@ -36,7 +36,10 @@ export function install(
].filter(Boolean) as string[]).concat(dependencies || [])
}
- const child = spawn(command, args, { stdio: 'inherit' })
+ const child = spawn(command, args, {
+ stdio: 'inherit',
+ env: { ...process.env, ADBLOCK: '1', DISABLE_OPENCOLLECTIVE: '1' }... | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.