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 | af82f322e54917afee3b93578830defe66aca59f.json | Enable New CSS Support by Default (#9927)
* Enable New CSS Support by Default
* Adjust configs
* Fix invisible AMP body
* Fix AMP validation warning
* test fix
* Use expression that won't be eliminated by babel | packages/next/client/dev/fouc.js | @@ -0,0 +1,14 @@
+export function displayContent() {
+ // 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.requestAnimationFrame || setTimeout)(function() {
+ for... | true |
Other | vercel | next.js | af82f322e54917afee3b93578830defe66aca59f.json | Enable New CSS Support by Default (#9927)
* Enable New CSS Support by Default
* Adjust configs
* Fix invisible AMP body
* Fix AMP validation warning
* test fix
* Use expression that won't be eliminated by babel | packages/next/client/next-dev.js | @@ -1,15 +1,18 @@
+/* globals __REPLACE_NOOP_IMPORT__ */
import initNext, * as next from './'
import EventSourcePolyfill from './dev/event-source-polyfill'
import initOnDemandEntries from './dev/on-demand-entries-client'
import initWebpackHMR from './dev/webpack-hot-middleware-client'
import initializeBuildWatcher... | true |
Other | vercel | next.js | af82f322e54917afee3b93578830defe66aca59f.json | Enable New CSS Support by Default (#9927)
* Enable New CSS Support by Default
* Adjust configs
* Fix invisible AMP body
* Fix AMP validation warning
* test fix
* Use expression that won't be eliminated by babel | packages/next/next-server/server/config.ts | @@ -41,7 +41,7 @@ const defaultConfig: { [key: string]: any } = {
(Number(process.env.CIRCLE_NODE_TOTAL) ||
(os.cpus() || { length: 1 }).length) - 1
),
- css: false,
+ css: true,
documentMiddleware: false,
granularChunks: true,
modern: false,
@@ -107,7 +107,11 @@ function assig... | true |
Other | vercel | next.js | af82f322e54917afee3b93578830defe66aca59f.json | Enable New CSS Support by Default (#9927)
* Enable New CSS Support by Default
* Adjust configs
* Fix invisible AMP body
* Fix AMP validation warning
* test fix
* Use expression that won't be eliminated by babel | packages/next/pages/_document.tsx | @@ -400,11 +400,15 @@ export class Head extends Component<
<>
<style
data-next-hide-fouc
+ data-ampdevmode={inAmpMode ? 'true' : undefined}
dangerouslySetInnerHTML={{
__html: `body{display:none}`,
}}
... | true |
Other | vercel | next.js | af82f322e54917afee3b93578830defe66aca59f.json | Enable New CSS Support by Default (#9927)
* Enable New CSS Support by Default
* Adjust configs
* Fix invisible AMP body
* Fix AMP validation warning
* test fix
* Use expression that won't be eliminated by babel | packages/next/taskfile-babel.js | @@ -10,6 +10,7 @@ module.exports = function(task) {
const options = {
...babelOpts,
compact: true,
+ comments: false,
babelrc: false,
configFile: false,
filename: file.base,
@@ -30,7 +31,7 @@ module.exports = function(task) {
// Workaround for noop.js loading
if (f... | true |
Other | vercel | next.js | af82f322e54917afee3b93578830defe66aca59f.json | Enable New CSS Support by Default (#9927)
* Enable New CSS Support by Default
* Adjust configs
* Fix invisible AMP body
* Fix AMP validation warning
* test fix
* Use expression that won't be eliminated by babel | test/integration/chunking-minimal/next.config.js | @@ -1,6 +1,5 @@
module.exports = {
experimental: {
modern: true,
- granularChunks: true,
},
} | true |
Other | vercel | next.js | af82f322e54917afee3b93578830defe66aca59f.json | Enable New CSS Support by Default (#9927)
* Enable New CSS Support by Default
* Adjust configs
* Fix invisible AMP body
* Fix AMP validation warning
* test fix
* Use expression that won't be eliminated by babel | test/integration/chunking/next.config.js | @@ -2,9 +2,6 @@ const BundleAnalyzerPlugin = require('webpack-bundle-analyzer')
.BundleAnalyzerPlugin
module.exports = {
assetPrefix: '/foo/',
- experimental: {
- granularChunks: true,
- },
webpack(config) {
config.plugins = config.plugins || []
config.plugins.push( | true |
Other | vercel | next.js | af82f322e54917afee3b93578830defe66aca59f.json | Enable New CSS Support by Default (#9927)
* Enable New CSS Support by Default
* Adjust configs
* Fix invisible AMP body
* Fix AMP validation warning
* test fix
* Use expression that won't be eliminated by babel | test/integration/css-fixtures/next.config.js | @@ -3,11 +3,6 @@ module.exports = {
// Make sure entries are not getting disposed.
maxInactiveAge: 1000 * 60 * 60,
},
- experimental: {
- css: true,
- // Intentionally set false to ensure we force to true.
- granularChunks: false,
- },
webpack(cfg) {
cfg.devtool = 'source-map'
retur... | true |
Other | vercel | next.js | a86640b309e8881e10cef9ac1150eff78308c6ce.json | docs: Fix Some Syntax Highlighting (#10013)
Fixes #10012 | docs/deployment.md | @@ -66,13 +66,13 @@ You can link your project in [GitHub](https://zeit.co/new), [GitLab](https://zei
You can install the command line tool using npm:
-```
+```bash
npm install -g now
```
You can deploy your application by running the following command in the root of the project directory:
-```
+```bash
now... | false |
Other | vercel | next.js | e72d8996b2055604a53c5799d8145e8fb598aa6e.json | Fix typo on code comment for pages docs (#10011) | docs/basic-features/pages.md | @@ -83,7 +83,7 @@ Data is always up-to-date but it comes at the cost of a slightly higher [Time to
// Next.js will execute `getInitialProps`
// It will wait for the result of `getInitialProps`
// When the results comes back Next.js will render the page.
-// Next.js wil do this for every request that comes in.
+// Ne... | false |
Other | vercel | next.js | 58b2d9e208c56cee0dab2eff287d2a19cb0e6de1.json | Use optional chaining syntax (#9975)
* Use optional chaining syntax
* Changes as per review
* Bug fix | packages/create-next-app/index.ts | @@ -87,9 +87,8 @@ async function run() {
appPath: resolvedProjectPath,
useNpm: !!program.useNpm,
example:
- typeof program.example === 'string' && program.example.trim()
- ? program.example.trim()
- : undefined,
+ (typeof program.example === 'string' && program.example.trim()) ||
... | true |
Other | vercel | next.js | 58b2d9e208c56cee0dab2eff287d2a19cb0e6de1.json | Use optional chaining syntax (#9975)
* Use optional chaining syntax
* Changes as per review
* Bug fix | packages/next/build/babel/plugins/next-page-config.ts | @@ -81,13 +81,7 @@ export default function nextPageConfig({
}
if (config.amp === true) {
- if (
- !(
- state.file &&
- state.file.opts &&
- state.file.opts.caller.isDev
- ... | true |
Other | vercel | next.js | 58b2d9e208c56cee0dab2eff287d2a19cb0e6de1.json | Use optional chaining syntax (#9975)
* Use optional chaining syntax
* Changes as per review
* Bug fix | packages/next/build/babel/plugins/next-ssg-transform.ts | @@ -109,7 +109,7 @@ export default function nextTransformSsg({
state: PluginState
) {
const ident = getIdentifier(path)
- if (ident && ident.node && isIdentifierReferenced(ident)) {
+ if (ident?.node && isIdentifierReferenced(ident)) {
state.refs.add(ident)
}
}
@@ -153,8 +153,7 @@ expo... | true |
Other | vercel | next.js | 58b2d9e208c56cee0dab2eff287d2a19cb0e6de1.json | Use optional chaining syntax (#9975)
* Use optional chaining syntax
* Changes as per review
* Bug fix | packages/next/build/babel/preset.ts | @@ -54,7 +54,7 @@ type BabelPreset = {
// Taken from https://github.com/babel/babel/commit/d60c5e1736543a6eac4b549553e107a9ba967051#diff-b4beead8ad9195361b4537601cc22532R158
function supportsStaticESM(caller: any) {
- return !!(caller && caller.supportsStaticESM)
+ return !!caller?.supportsStaticESM
}
module.... | true |
Other | vercel | next.js | 58b2d9e208c56cee0dab2eff287d2a19cb0e6de1.json | Use optional chaining syntax (#9975)
* Use optional chaining syntax
* Changes as per review
* Bug fix | packages/next/build/output/index.ts | @@ -292,8 +292,8 @@ export function watchCompilers(
stats.toJson({ all: false, warnings: true, errors: true })
)
- const hasErrors = errors && errors.length
- const hasWarnings = warnings && warnings.length
+ const hasErrors = !!errors?.length
+ const hasWarnings = !!warnings?.leng... | true |
Other | vercel | next.js | 58b2d9e208c56cee0dab2eff287d2a19cb0e6de1.json | Use optional chaining syntax (#9975)
* Use optional chaining syntax
* Changes as per review
* Bug fix | packages/next/build/utils.ts | @@ -103,9 +103,9 @@ export async function printTreeView(
`${symbol} ${
item === '/_app'
? ' '
- : pageInfo && pageInfo.static
+ : pageInfo?.static
? '○'
- : pageInfo && pageInfo.isSsg
+ : pageInfo?.isSsg
? '●'
: 'λ'
}... | true |
Other | vercel | next.js | 58b2d9e208c56cee0dab2eff287d2a19cb0e6de1.json | Use optional chaining syntax (#9975)
* Use optional chaining syntax
* Changes as per review
* Bug fix | packages/next/build/webpack-config.ts | @@ -203,8 +203,8 @@ export default async function getBaseWebpackConfig(
typeScriptPath && (await fileExists(tsConfigPath))
)
const ignoreTypeScriptErrors = dev
- ? config.typescript && config.typescript.ignoreDevErrors
- : config.typescript && config.typescript.ignoreBuildErrors
+ ? config.typescrip... | true |
Other | vercel | next.js | 58b2d9e208c56cee0dab2eff287d2a19cb0e6de1.json | Use optional chaining syntax (#9975)
* Use optional chaining syntax
* Changes as per review
* Bug fix | packages/next/build/webpack/plugins/next-drop-client-page-plugin.ts | @@ -10,11 +10,7 @@ export class DropClientPage implements Plugin {
Object.keys(compilation.assets).forEach(assetKey => {
const asset = compilation.assets[assetKey]
- if (
- asset &&
- asset._value &&
- asset._value.includes('__NEXT_DROP_CLIENT_FILE__')
- ) {
+ ... | true |
Other | vercel | next.js | 58b2d9e208c56cee0dab2eff287d2a19cb0e6de1.json | Use optional chaining syntax (#9975)
* Use optional chaining syntax
* Changes as per review
* Bug fix | packages/next/build/webpack/plugins/next-esm-plugin.ts | @@ -109,7 +109,7 @@ export default class NextEsmPlugin implements Plugin {
ruleLoader = ruleLoader.loader
}
if (
- (ruleUse && ruleUse.loader && predicate(ruleUse.loader)) ||
+ (ruleUse?.loader && predicate(ruleUse.loader)) ||
(ruleLoader && predicate(ruleLoader as string))... | true |
Other | vercel | next.js | 58b2d9e208c56cee0dab2eff287d2a19cb0e6de1.json | Use optional chaining syntax (#9975)
* Use optional chaining syntax
* Changes as per review
* Bug fix | packages/next/export/index.ts | @@ -166,7 +166,7 @@ export default async function(
// default. In most cases, this would never work. There is no server that
// could run `getStaticProps`. If users make their page work lazily, they
// can manually add it to the `exportPathMap`.
- if (prerenderManifest && prerenderManifest.dynamicRout... | true |
Other | vercel | next.js | 58b2d9e208c56cee0dab2eff287d2a19cb0e6de1.json | Use optional chaining syntax (#9975)
* Use optional chaining syntax
* Changes as per review
* Bug fix | packages/next/lib/verifyTypeScriptSetup.ts | @@ -218,7 +218,7 @@ export async function verifyTypeScriptSetup(
)
}
- if (result.errors && result.errors.length) {
+ if (result.errors?.length) {
throw new Error(
ts.formatDiagnostic(result.errors[0], formatDiagnosticHost)
)
@@ -236,7 +236,7 @@ export async function verifyTyp... | true |
Other | vercel | next.js | 58b2d9e208c56cee0dab2eff287d2a19cb0e6de1.json | Use optional chaining syntax (#9975)
* Use optional chaining syntax
* Changes as per review
* Bug fix | packages/next/next-server/lib/utils.ts | @@ -245,7 +245,7 @@ export async function loadGetInitialProps<
P = {}
>(App: NextComponentType<C, IP, P>, ctx: C): Promise<IP> {
if (process.env.NODE_ENV !== 'production') {
- if (App.prototype && App.prototype.getInitialProps) {
+ if (App.prototype?.getInitialProps) {
const message = `"${getDisplay... | true |
Other | vercel | next.js | 58b2d9e208c56cee0dab2eff287d2a19cb0e6de1.json | Use optional chaining syntax (#9975)
* Use optional chaining syntax
* Changes as per review
* Bug fix | packages/next/next-server/server/config.ts | @@ -172,7 +172,7 @@ export default function loadConfig(
})
// If config file was found
- if (path && path.length) {
+ if (path?.length) {
const userConfigModule = require(path)
const userConfig = normalizeConfig(
phase,
@@ -186,7 +186,7 @@ export default function loadConfig(
)
}
... | true |
Other | vercel | next.js | 58b2d9e208c56cee0dab2eff287d2a19cb0e6de1.json | Use optional chaining syntax (#9975)
* Use optional chaining syntax
* Changes as per review
* Bug fix | packages/next/next-server/server/next-server.ts | @@ -532,7 +532,7 @@ export default class Server {
}
}
- if (params && params.path && params.path[0] === 'api') {
+ if (params?.path?.[0] === 'api') {
const handled = await this.handleApiRequest(
req as NextApiRequest,
res as NextApiResponse, | true |
Other | vercel | next.js | 58b2d9e208c56cee0dab2eff287d2a19cb0e6de1.json | Use optional chaining syntax (#9975)
* Use optional chaining syntax
* Changes as per review
* Bug fix | packages/next/server/hot-reloader.ts | @@ -198,7 +198,7 @@ export default class HotReloader {
// Make sure to 404 for AMP first pages
try {
const mod = require(bundlePath)
- if (mod && mod.config && mod.config.amp === true) {
+ if (mod?.config?.amp === true) {
res.statusCode = 404
res.... | true |
Other | vercel | next.js | 58b2d9e208c56cee0dab2eff287d2a19cb0e6de1.json | Use optional chaining syntax (#9975)
* Use optional chaining syntax
* Changes as per review
* Bug fix | packages/next/server/next-dev-server.ts | @@ -144,7 +144,7 @@ export default class DevServer extends Server {
// Watchpack doesn't emit an event for an empty directory
fs.readdir(pagesDir!, (_, files) => {
- if (files && files.length) {
+ if (files?.length) {
return
}
| true |
Other | vercel | next.js | f44f9e2da75ee6e780c029bc7d2c29358c2853b3.json | docs: Fix imports in router API reference (#9977) | docs/api-reference/next/router.md | @@ -209,7 +209,7 @@ You can listen to different events happening inside the Router. Here's a list of
For example, to listen to the router event `routeChangeStart`, do the following:
```jsx
-import Router from 'router/events'
+import Router from 'next/router'
const handleRouteChange = url => {
console.log('App... | false |
Other | vercel | next.js | 23a04e466c9c82ad6a6ef0fd9c46102d7512bbe3.json | Add docs for catch all routes (#9967)
* Added docs for catch all routes
* Removed `be`
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/routing/dynamic-routes.md | @@ -56,6 +56,26 @@ Multiple dynamic route segments work the same way. The page `pages/post/[pid]/[c
Client-side navigations to a dynamic route can be handled with [`next/link`](/docs/api-reference/next/link.md#dynamic-routes).
+### Catch all routes
+
+Dynamic routes can be extended to catch all paths by adding thr... | true |
Other | vercel | next.js | 23a04e466c9c82ad6a6ef0fd9c46102d7512bbe3.json | Add docs for catch all routes (#9967)
* Added docs for catch all routes
* Removed `be`
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/routing/introduction.md | @@ -30,6 +30,7 @@ To match a dynamic segment you can use the bracket syntax. This allows you to ma
- `pages/blog/[slug].js` → `/blog/:slug` (`/blog/hello-world`)
- `pages/[username]/settings.js` → `/:username/settings` (`/foo/settings`)
+- `pages/post/[...all]` → `/post/*` (`/post/2020/id/title`)
## Linking betw... | true |
Other | vercel | next.js | 72a0c5578e249b5b4c8c76aebb02ebe9e9a1a7ec.json | Remove async from void functions in page-loader (#9948)
* Remove async from void functions in page-loader
* Fix void return
* Update page-loader.js
* Update index.test.js | packages/next/client/page-loader.js | @@ -18,6 +18,16 @@ const relPrefetch =
const hasNoModule = 'noModule' in document.createElement('script')
+function normalizeRoute(route) {
+ if (route[0] !== '/') {
+ throw new Error(`Route name should start with a "/", got "${route}"`)
+ }
+ route = route.replace(/\/index$/, '/')
+
+ if (route === '/') re... | true |
Other | vercel | next.js | 72a0c5578e249b5b4c8c76aebb02ebe9e9a1a7ec.json | Remove async from void functions in page-loader (#9948)
* Remove async from void functions in page-loader
* Fix void return
* Update page-loader.js
* Update index.test.js | test/integration/size-limit/test/index.test.js | @@ -101,7 +101,7 @@ describe('Production response size', () => {
)
// These numbers are without gzip compression!
- const delta = responseSizeKilobytes - 199
+ const delta = responseSizeKilobytes - 198
expect(delta).toBeLessThanOrEqual(0) // don't increase size
expect(delta).toBeGreaterThanO... | true |
Other | vercel | next.js | a277218db580eb5e7aec0594a823e766a937b363.json | Fix Safari Script Test Count (#9932) | test/integration/production/test/index.test.js | @@ -460,7 +460,7 @@ describe('Production Usage', () => {
if (browserName === 'safari') {
const elements = await browser.elementsByCss('link[rel=preload]')
// 4 page preloads and 5 existing preloads for _app, commons, main, etc
- expect(elements.length).toBe(9)
+ expect(elements.le... | false |
Other | vercel | next.js | 3707701cc9e9d03016dfc830d2d80a4de8517718.json | Fix mistakes in the Deployment doc (#9925)
* Fix a few small spelling and grammar mistakes in the Deployment doc
* Update deployment.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/deployment.md | @@ -4,7 +4,7 @@ description: Compile and deploy your Next.js app to production with ZEIT Now and
# Deployment
-To go to production Next.js has a `next build` command. When ran it will compile your project and automatically apply numerous optimizations.
+To go to production Next.js has a `next build` command. When ... | false |
Other | vercel | next.js | 9261b82a82d14f3acf2acacb1719c93a884732e6.json | Enable New Chunking Behavior (#9731)
* Enable New Chunking Behavior
* fix tst
* Increase sizes in test
* add another test
* Fix preloading order
* Replace commons with framework | packages/next/next-server/server/config.ts | @@ -44,7 +44,7 @@ const defaultConfig: { [key: string]: any } = {
),
css: false,
documentMiddleware: false,
- granularChunks: false,
+ granularChunks: true,
modern: false,
plugins: false,
profiling: false, | true |
Other | vercel | next.js | 9261b82a82d14f3acf2acacb1719c93a884732e6.json | Enable New Chunking Behavior (#9731)
* Enable New Chunking Behavior
* fix tst
* Increase sizes in test
* add another test
* Fix preloading order
* Replace commons with framework | test/integration/build-output/test/index.test.js | @@ -25,7 +25,7 @@ describe('Build Output', () => {
expect(stdout).toMatch(/\/ [ ]* \d{1,} B/)
expect(stdout).toMatch(/\+ shared by all [ 0-9.]* kB/)
expect(stdout).toMatch(/ runtime\/main\.js [ 0-9.]* kB/)
- expect(stdout).toMatch(/ chunks\/commons\.js [ 0-9. ]* kB/)
+ expect(stdout).toMa... | true |
Other | vercel | next.js | 9261b82a82d14f3acf2acacb1719c93a884732e6.json | Enable New Chunking Behavior (#9731)
* Enable New Chunking Behavior
* fix tst
* Increase sizes in test
* add another test
* Fix preloading order
* Replace commons with framework | test/integration/preload-viewport/pages/multi-prefetch.js | @@ -8,6 +8,10 @@ export default () => {
router.prefetch('/dynamic/[hello]')
router.prefetch('/dynamic/[hello]')
router.prefetch('/dynamic/[hello]')
+
+ router.prefetch('/dynamic/first')
+ router.prefetch('/dynamic/first')
+ router.prefetch('/dynamic/first')
}, [router])
return (
<div> | true |
Other | vercel | next.js | 9261b82a82d14f3acf2acacb1719c93a884732e6.json | Enable New Chunking Behavior (#9731)
* Enable New Chunking Behavior
* fix tst
* Increase sizes in test
* add another test
* Fix preloading order
* Replace commons with framework | test/integration/size-limit/test/index.test.js | @@ -81,7 +81,7 @@ describe('Production response size', () => {
)
// These numbers are without gzip compression!
- const delta = responseSizeKilobytes - 230
+ const delta = responseSizeKilobytes - 234
expect(delta).toBeLessThanOrEqual(0) // don't increase size
expect(delta).toBeGreaterThanOrE... | true |
Other | vercel | next.js | a3925b5865f6959ed1334e2a707279437fcb3b89.json | Fix mistakes in the Custom Server doc (#9930) | docs/advanced-features/custom-server.md | @@ -17,7 +17,7 @@ description: Start a Next.js app programmatically using a custom server.
Typically you start your next server with `next start`. It's possible, however, to start a server 100% programmatically in order to use custom route patterns.
-> Before deciding to use a custom a custom server please keep in... | false |
Other | vercel | next.js | 41d4084c040bd74b9519bb347fdfff7ce1f5c3a6.json | Add a missing word to the Static Optimization doc (#9926) | docs/advanced-features/automatic-static-optimization.md | @@ -10,7 +10,7 @@ This feature allows Next.js to emit hybrid applications that contain **both serv
> Statically generated pages are still reactive: Next.js will hydrate your application client-side to give it full interactivity.
-One of the main benefits this feature is that optimized pages require no server-side ... | false |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/advanced-features/amp-support/adding-amp-components.md | @@ -1,3 +1,7 @@
+---
+description: Add components from the AMP community to AMP pages, and make your pages more interactive.
+---
+
# Adding AMP Components
The AMP community provide [many components](https://amp.dev/documentation/components/) to make AMP pages more interactive. You can add these components to your ... | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/advanced-features/amp-support/amp-in-static-html-export.md | @@ -1,3 +1,7 @@
+---
+description: Learn how AMP pages are created when used together with `next export`.
+---
+
# AMP in Static HTML export
When using `next export` to do [Static HTML export](/docs/advanced-features/static-html-export.md) statically prerender pages, Next.js will detect if the page supports AMP and... | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/advanced-features/amp-support/amp-validation.md | @@ -1,3 +1,7 @@
+---
+description: AMP pages are automatically validated by Next.js during development and on build. Learn more about it here.
+---
+
# AMP Validation
AMP pages are automatically validated with [amphtml-validator](https://www.npmjs.com/package/amphtml-validator) during development. Errors and warnin... | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/advanced-features/amp-support/introduction.md | @@ -1,3 +1,7 @@
+---
+description: With minimal config, and without leaving React, you can start adding AMP and improve the performance and speed of your pages.
+---
+
# AMP Support
<details> | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/advanced-features/amp-support/typescript.md | @@ -1,3 +1,7 @@
+---
+description: Using AMP with TypeScript? Extend your typings to allow AMP components.
+---
+
# TypeScript
AMP currently doesn't have built-in types for TypeScript, but it's in their roadmap ([#13791](https://github.com/ampproject/amphtml/issues/13791)). | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/advanced-features/automatic-static-optimization.md | @@ -1,3 +1,7 @@
+---
+description: Next.js automatically optimizes your app to be static HTML whenever possible. Learn how it works here.
+---
+
# Automatic Static Optimization
Next.js automatically determines that a page is static (can be prerendered) if it has no blocking data requirements. This determination is ... | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/advanced-features/custom-app.md | @@ -1,3 +1,7 @@
+---
+description: Control page initialization and add a layout that persists for all pages by overriding the default App component used by Next.js.
+---
+
# Custom `App`
Next.js uses the `App` component to initialize pages. You can override it and control the page initialization. Which allows you t... | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/advanced-features/custom-document.md | @@ -1,3 +1,7 @@
+---
+description: Extend the default document markup added by Next.js.
+---
+
# Custom `Document`
A custom `Document` is commonly used to augment your application's `<html>` and `<body>` tags. This is necessary because Next.js pages skip the definition of the surrounding document's markup. | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/advanced-features/custom-error-page.md | @@ -1,3 +1,7 @@
+---
+description: Override and extend the built-in Error page to handle custom errors.
+---
+
# Custom Error Page
**404** or **500** errors are handled both client-side and server-side by the `Error` component. If you wish to override it, define the file `pages/_error.js` and add the following code... | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/advanced-features/custom-server.md | @@ -1,3 +1,7 @@
+---
+description: Start a Next.js app programmatically using a custom server.
+---
+
# Custom Server
<details> | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/advanced-features/customizing-babel-config.md | @@ -1,3 +1,7 @@
+---
+description: Extend the babel preset added by Next.js with your own configs.
+---
+
# Customizing Babel Config
<details> | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/advanced-features/dynamic-import.md | @@ -1,3 +1,7 @@
+---
+description: Dynamically import JavaScript modules and React Components and split your code into manageable chunks.
+---
+
# Dynamic Import
<details> | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/advanced-features/src-directory.md | @@ -1,3 +1,7 @@
+---
+description: Save pages under the `src` directory as an alternative to the root `pages` directory.
+---
+
# `src` Directory
Pages can also be added under `src/pages` as an alternative to the root `pages` directory. | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/advanced-features/static-html-export.md | @@ -1,3 +1,7 @@
+---
+description: Export your Next.js app to static HTML, and run it standalone without the need of a Node.js server.
+---
+
# Static HTML Export
<details> | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/api-reference/cli.md | @@ -1,3 +1,7 @@
+---
+description: The Next.js CLI allows you to start, build, and export your application. Learn more about it here.
+---
+
# Next.js CLI
The Next.js CLI allows you to start, build, and export your application. | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/api-reference/data-fetching/getInitialProps.md | @@ -1,3 +1,7 @@
+---
+description: Enable Server-Side Rendering in a page and do initial data population with `getInitialProps`.
+---
+
# getInitialProps
<details> | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/api-reference/next.config.js/build-target.md | @@ -1,3 +1,7 @@
+---
+description: Learn more about the build targets used by Next.js, which decide the way your application is built and run.
+---
+
# Build Target
Next.js supports various build targets, each changing the way your application is built and run. We'll explain each of the targets below. | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/api-reference/next.config.js/cdn-support-with-asset-prefix.md | @@ -1,3 +1,7 @@
+---
+description: A custom asset prefix allows you serve static assets from a CDN. Learn more about it here.
+---
+
# CDN Support with Asset Prefix
To set up a [CDN](https://en.wikipedia.org/wiki/Content_delivery_network), you can set up an asset prefix and configure your CDN's origin to resolve to... | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/api-reference/next.config.js/compression.md | @@ -1,3 +1,7 @@
+---
+description: Next.js provides gzip compression to compress rendered content and static files, it only works with the server target. Learn more about it here.
+---
+
# Compression
Next.js provides [**gzip**](https://tools.ietf.org/html/rfc6713#section-3) compression to compress rendered content... | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/api-reference/next.config.js/configuring-onDemandEntries.md | @@ -1,3 +1,7 @@
+---
+description: Configure how Next.js will dispose and keep in memory pages created in development.
+---
+
# Configuring onDemandEntries
Next.js exposes some options that give you some control over how the server will dispose or keep in memory built pages in development. | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/api-reference/next.config.js/configuring-the-build-id.md | @@ -1,3 +1,7 @@
+---
+description: Configure the build id, which is used to identify the current build in which your application is being served.
+---
+
# Configuring the Build ID
Next.js uses a constant id generated at build time to identify which version of your application is being served. This can cause problem... | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/api-reference/next.config.js/custom-page-extensions.md | @@ -1,3 +1,7 @@
+---
+description: Extend the default page extensions used by Next.js when resolving pages in the pages directory.
+---
+
# Custom Page Extensions
Aimed at modules like [@next/mdx](https://github.com/zeit/next.js/tree/canary/packages/next-mdx), which adds support for pages ending with `.mdx`. You ca... | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/api-reference/next.config.js/custom-webpack-config.md | @@ -1,3 +1,7 @@
+---
+description: Extend the default webpack config added by Next.js.
+---
+
# Custom Webpack Config
Some commonly asked for features are available as plugins: | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/api-reference/next.config.js/disabling-etag-generation.md | @@ -1,3 +1,7 @@
+---
+description: Next.js will generate etags for every page by default. Learn more about how to disable etag generation here.
+---
+
# Disabling ETag Generation
Next.js will generate [etags](https://en.wikipedia.org/wiki/HTTP_ETag) for every page by default. You may want to disable etag generation... | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/api-reference/next.config.js/disabling-x-powered-by.md | @@ -1,3 +1,7 @@
+---
+description: Next.js will add `x-powered-by` to the request headers by default. Learn to opt-out of it here.
+---
+
# Disabling x-powered-by
By default Next.js will add `x-powered-by` to the request headers. To opt-out of it, open `next.config.js` and disable the `poweredByHeader` config: | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/api-reference/next.config.js/environment-variables.md | @@ -1,3 +1,7 @@
+---
+description: Learn to add and access environment variables in your Next.js application at build time.
+---
+
# Environment Variables
<details> | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/api-reference/next.config.js/exportPathMap.md | @@ -1,3 +1,7 @@
+---
+description: Customize the pages that will be exported as HTML files when using `next export`.
+---
+
# exportPathMap
> This feature is exclusive of `next export`. Please refer to [Static HTML export](/docs/advanced-features/static-html-export.md) if you want to learn more about it. | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/api-reference/next.config.js/ignoring-typescript-errors.md | @@ -1,3 +1,7 @@
+---
+description: Next.js reports TypeScript errors by default. Learn to opt-out of this behavior here.
+---
+
# Ignoring TypeScript Errors
Next.js reports TypeScript errors by default. If you don't want to leverage this behavior and prefer something else instead, like your editor's integration, yo... | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/api-reference/next.config.js/introduction.md | @@ -1,3 +1,7 @@
+---
+description: learn more about the configuration file used by Next.js to handle your application.
+---
+
# next.config.js
For custom advanced behavior of Next.js, you can create a `next.config.js` in the root of your project directory (next to `package.json`). | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/api-reference/next.config.js/runtime-configuration.md | @@ -1,3 +1,7 @@
+---
+description: Add client and server runtime configuration to your Next.js app.
+---
+
# Runtime Configuration
> Generally you'll want to use [build-time environment variables](/docs/api-reference/next.config.js/environment-variables.md) to provide your configuration. The reason for this is that... | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/api-reference/next.config.js/setting-a-custom-build-directory.md | @@ -1,3 +1,7 @@
+---
+description: Set a custom build directory to use instead of the default .next directory.
+---
+
# Setting a custom build directory
You can specify a name to use for a custom build directory to use instead of `.next`. | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/api-reference/next.config.js/static-optimization-indicator.md | @@ -1,3 +1,7 @@
+---
+description: Optimized pages include an indicator to let you know if it's being statically optimized. You can opt-out of it here.
+---
+
# Static Optimization Indicator
When a page qualifies for [Automatic Static Optimization](/docs/advanced-features/automatic-static-optimization.md) we show a... | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/api-reference/next/amp.md | @@ -1,3 +1,7 @@
+---
+description: Enable AMP in a page, and control the way Next.js adds AMP to the page with the AMP config.
+---
+
# next/amp
<details> | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/api-reference/next/head.md | @@ -1,3 +1,7 @@
+---
+description: Add custom elements to the `head` of your page with the built-in Head component.
+---
+
# next/head
<details> | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/api-reference/next/link.md | @@ -1,3 +1,7 @@
+---
+description: Enable client-side transitions between routes with the built-in Link component.
+---
+
# next/link
<details> | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/api-reference/next/router.md | @@ -1,3 +1,7 @@
+---
+description: Learn more about the API of the Next.js Router, and access the router instance in your page with the useRouter hook.
+---
+
# next/router
> Before moving forward, we recommend you to read [Routing Introduction](/docs/routing/introduction.md) first. | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/api-routes/api-middlewares.md | @@ -1,3 +1,7 @@
+---
+description: API Routes provide built-in middlewares that parse the incoming request. Learn more about them here.
+---
+
# API Middlewares
API routes provide built in middlewares which parse the incoming request (`req`). Those middlewares are: | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/api-routes/dynamic-api-routes.md | @@ -1,6 +1,10 @@
+---
+description: You can add the dynamic routes used for pages to API Routes too. Learn how it works here.
+---
+
# Dynamic API Routes
-API pages support [dynamic routes](/docs/routing/dynamic-routes.md), and follow the same file naming rules used for `pages`.
+API routes support [dynamic routes](... | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/api-routes/introduction.md | @@ -1,3 +1,7 @@
+---
+description: Next.js supports API Routes, which allow you to build your API without leaving your Next.js app. Learn how it works here.
+---
+
# API Routes
<details> | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/api-routes/response-helpers.md | @@ -1,3 +1,7 @@
+---
+description: API Routes include a set of Express.js-like methods for the response to help you creating new API endpoints. Learn how it works here.
+---
+
# Response Helpers
The response (`res`) includes a set of Express.js-like methods to improve the developer experience and increase the speed... | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/basic-features/built-in-css-support.md | @@ -1,3 +1,7 @@
+---
+description: Next.js includes styled-jsx by default for isolated and scoped CSS support, but you can also use any other CSS-in-JS solution!. Learn more here.
+---
+
# Built-in CSS Support
<details> | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/basic-features/data-fetching.md | @@ -1,3 +1,7 @@
+---
+description: Next.js can handle data fetching in multiple ways for server-rendered and static pages. Learn how it works here.
+---
+
# Data fetching
Next.js has 2 pre-rendering modes built-in: | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/basic-features/pages.md | @@ -1,3 +1,7 @@
+---
+description: Next.js pages are React Components exported in a file in the pages directory. Learn how they work here.
+---
+
# Pages
A page is a [React Component](https://reactjs.org/docs/components-and-props.html) exported from a `.js`, `.ts`, or `.tsx` file in the `pages` directory. | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/basic-features/static-file-serving.md | @@ -1,3 +1,7 @@
+---
+description: Next.js allows you to serve static files, like images, in the public directory. You can learn how it works here.
+---
+
# Static File Serving
Next.js can serve static files, like images, under a folder called `public` in the root directory. Files inside `public` can then be refere... | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/basic-features/typescript.md | @@ -1,3 +1,7 @@
+---
+description: Next.js supports TypeScript by default and has built-in types for pages and the API. You can get started with Next.js and TypeScript here.
+---
+
# TypeScript
<details> | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/deployment.md | @@ -1,3 +1,7 @@
+---
+description: Compile and deploy your Next.js app to production with ZEIT Now and other hosting alternatives.
+---
+
# Deployment
To go to production Next.js has a `next build` command. When ran it will compile your project and automatically apply numerous optimizations. | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/faq.md | @@ -1,3 +1,7 @@
+---
+description: Get to know more about Next.js with the frequently asked questions.
+---
+
# Frequently Asked Questions
<details> | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/getting-started.md | @@ -1,5 +1,5 @@
---
-description: Getting started with Next.js.
+description: Get started with Next.js in the official documentation, and learn more about all our features!
---
# Getting Started | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/routing/dynamic-routes.md | @@ -1,3 +1,7 @@
+---
+description: Dynamic Routes are pages that allow you to add custom params to your URLs. Start creating Dynamic Routes and learn more here.
+---
+
# Dynamic Routes
<details> | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/routing/imperatively.md | @@ -1,3 +1,7 @@
+---
+description: Client-side navigations are also possible using the Router API instead of the Link component. Learn more here.
+---
+
# Imperatively
<details> | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/routing/introduction.md | @@ -1,3 +1,7 @@
+---
+description: Next.js has a built-in, opinionated, and file-system based Router. You can learn how it works here.
+---
+
# Routing
Next.js has a file-system based router built on the [concept of pages](/docs/basic-features/pages.md). | true |
Other | vercel | next.js | d1fdd2bbf8df7e12f561f3eec0c1f16897502045.json | Add descriptions to documentation pages (#9901)
* Added descriptions
* Added descriptions to API Reference
* Added descriptions to API Routes
* Added descriptions to basic features
* Added descriptions to the routing docs
* Update exportPathMap.md
Co-authored-by: Joe Haddad <timer150@gmail.com> | docs/routing/shallow-routing.md | @@ -1,3 +1,7 @@
+---
+description: You can use shallow routing to change the URL without triggering a new page change. Learn more here.
+---
+
# Shallow Routing
<details> | true |
Other | vercel | next.js | 9e9c7ea393c925f97f4a6bc7360e08da0d1fd781.json | Remove leftover symlink | linkfolder | @@ -1 +0,0 @@
-folder1
\ No newline at end of file | false |
Other | vercel | next.js | 6e1762a751e44dd099583f2ced345a7505ebf55d.json | Remove extra logging from on-demand-entries (#9909)
* Remove extra logging from on-demand-entries
* Update on-demand-entry-handler.ts
* Update on-demand-entry-handler.ts
* Update on-demand-entry-handler.ts
Co-authored-by: Tim Neutkens <tim@timneutkens.nl> | packages/next/server/on-demand-entry-handler.ts | @@ -65,7 +65,6 @@ export default function onDemandEntryHandler(
let reloading = false
let stopped = false
let reloadCallbacks: EventEmitter | null = new EventEmitter()
- let lastEntry: string | null = null
for (const compiler of compilers) {
compiler.hooks.make.tapPromise(
@@ -80,7 +79,7 @@ export d... | false |
Other | vercel | next.js | 28b61a8c9403c3e3a985ffbd176a514d64c79dfa.json | Remove Unneeded _error import (#6224) | packages/next-server/server/render.tsx | @@ -15,19 +15,19 @@ type ComponentsEnhancer = {enhanceApp?: Enhancer, enhanceComponent?: Enhancer}|E
function enhanceComponents(options: ComponentsEnhancer, App: React.ComponentType, Component: React.ComponentType): {
App: React.ComponentType,
- Component: React.ComponentType
+ Component: React.ComponentType,
... | false |
Other | vercel | next.js | cc0b3ef4519b2962e47aaf51219c57580e5ae9d2.json | Remove extraneous benchmark dependency (#6222)
AFAIK this dependency isn't being used anywhere so it should be safe to remove it. | package.json | @@ -62,7 +62,6 @@
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "9.0.0",
"babel-jest": "23.6.0",
- "benchmark": "2.1.4",
"cheerio": "0.22.0",
"chromedriver": "2.42.0",
"clone": "2.1.1", | true |
Other | vercel | next.js | cc0b3ef4519b2962e47aaf51219c57580e5ae9d2.json | Remove extraneous benchmark dependency (#6222)
AFAIK this dependency isn't being used anywhere so it should be safe to remove it. | yarn.lock | @@ -2457,14 +2457,6 @@ before-after-hook@^1.1.0:
resolved "https://registry.yarnpkg.com/before-after-hook/-/before-after-hook-1.3.2.tgz#7bfbf844ad670aa7a96b5a4e4e15bd74b08ed66b"
integrity sha512-zyPgY5dgbf99c0uGUjhY4w+mxqEGxPKg9RQDl34VvrVh2bM31lFN+mwR1ZHepq/KA3VCPk1gwJZL6IIJqjLy2w==
-benchmark@2.1.4:
- version... | true |
Other | vercel | next.js | 0e13d8c952bb960837ce5e6553b25331e272370b.json | Remove route event in componentWillUnmount (#6196)
`Router.events.off` should be called instead of `Router.events.on` in `componentWillInmount`. | test/integration/with-router/components/header-nav.js | @@ -26,7 +26,7 @@ class HeaderNav extends React.Component {
componentWillUnmount () {
Router.onRouteChangeComplete = null
- Router.events.on('routeChangeComplete', this.handleRouteChangeTopLevelRouter)
+ Router.events.off('routeChangeComplete', this.handleRouteChangeTopLevelRouter)
this.props.route... | false |
Other | vercel | next.js | 5a4176cffe7d72afbf6f9071adee8d38cd93c60d.json | Invalidate cache for link[preload] in DEV (#6183)
Fixes #5860 | packages/next/pages/_document.js | @@ -10,7 +10,8 @@ const Fragment = React.Fragment || function Fragment ({ children }) {
export default class Document extends Component {
static childContextTypes = {
- _documentProps: PropTypes.any
+ _documentProps: PropTypes.any,
+ _devOnlyInvalidateCacheQueryString: PropTypes.string,
}
static ... | true |
Other | vercel | next.js | 5a4176cffe7d72afbf6f9071adee8d38cd93c60d.json | Invalidate cache for link[preload] in DEV (#6183)
Fixes #5860 | test/integration/app-document/test/rendering.js | @@ -67,6 +67,22 @@ export default function ({ app }, suiteName, render, fetch) {
expect($('#render-page-enhance-app').text().includes(nonce)).toBe(true)
expect($('#render-page-enhance-component').text().includes(nonce)).toBe(true)
})
+
+ // This is a workaround to fix https://github.com/ze... | true |
Other | vercel | next.js | 5a4176cffe7d72afbf6f9071adee8d38cd93c60d.json | Invalidate cache for link[preload] in DEV (#6183)
Fixes #5860 | test/integration/production/test/index.test.js | @@ -241,6 +241,27 @@ describe('Production Usage', () => {
browser.close()
})
+ // This is a workaround to fix https://github.com/zeit/next.js/issues/5860
+ // TODO: remove this workaround when https://bugs.webkit.org/show_bug.cgi?id=187726 is fixed.
+ it('It does not add a timestamp to link tags ... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.