-
Notifications
You must be signed in to change notification settings - Fork 27.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'canary' into revert-65425-revert-64521-edge/extract-bui…
…ld-id
- Loading branch information
Showing
600 changed files
with
394,224 additions
and
453,308 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
docs/03-pages/02-api-reference/03-next-config-js/bundlePagesRouterDependencies.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
title: bundlePagesRouterDependencies | ||
description: Enable automatic dependency bundling for Pages Router | ||
--- | ||
|
||
Enable automatic server-side dependency bundling for Pages Router applications. Matches the automatic dependency bundling in App Router. | ||
|
||
```js filename="next.config.js" | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
bundlePagesRouterDependencies: true, | ||
} | ||
|
||
module.exports = nextConfig | ||
``` | ||
|
||
Explicitly opt-out certain packages from being bundled using the [`serverExternalPackages`](/docs/pages/api-reference/next-config-js/serverExternalPackages) option. |
77 changes: 77 additions & 0 deletions
77
docs/03-pages/02-api-reference/03-next-config-js/serverExternalPackages.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
--- | ||
title: serverExternalPackages | ||
description: Opt-out specific dependencies from the dependency bundling enabled by `bundlePagesRouterDependencies`. | ||
--- | ||
|
||
Opt-out specific dependencies from being included in the automatic bundling of the [`bundlePagesRouterDependencies`](/docs/pages/api-reference/next-config-js/bundlePagesRouterDependencies) option. | ||
|
||
These pages will then use native Node.js `require` to resolve the dependency. | ||
|
||
```js filename="next.config.js" | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
serverExternalPackages: ['@acme/ui'], | ||
} | ||
|
||
module.exports = nextConfig | ||
``` | ||
|
||
Next.js includes a [short list of popular packages](https://github.com/vercel/next.js/blob/canary/packages/next/src/lib/server-external-packages.json) that currently are working on compatibility and automatically opt-ed out: | ||
|
||
- `@appsignal/nodejs` | ||
- `@aws-sdk/client-s3` | ||
- `@aws-sdk/s3-presigned-post` | ||
- `@blockfrost/blockfrost-js` | ||
- `@highlight-run/node` | ||
- `@jpg-store/lucid-cardano` | ||
- `@libsql/client` | ||
- `@mikro-orm/core` | ||
- `@mikro-orm/knex` | ||
- `@node-rs/argon2` | ||
- `@node-rs/bcrypt` | ||
- `@prisma/client` | ||
- `@react-pdf/renderer` | ||
- `@sentry/profiling-node` | ||
- `@swc/core` | ||
- `argon2` | ||
- `autoprefixer` | ||
- `aws-crt` | ||
- `bcrypt` | ||
- `better-sqlite3` | ||
- `canvas` | ||
- `cpu-features` | ||
- `cypress` | ||
- `eslint` | ||
- `express` | ||
- `firebase-admin` | ||
- `isolated-vm` | ||
- `jest` | ||
- `jsdom` | ||
- `libsql` | ||
- `mdx-bundler` | ||
- `mongodb` | ||
- `mongoose` | ||
- `next-mdx-remote` | ||
- `next-seo` | ||
- `node-pty` | ||
- `node-web-audio-api` | ||
- `oslo` | ||
- `pg` | ||
- `playwright` | ||
- `postcss` | ||
- `prettier` | ||
- `prisma` | ||
- `puppeteer-core` | ||
- `puppeteer` | ||
- `rimraf` | ||
- `sharp` | ||
- `shiki` | ||
- `sqlite3` | ||
- `tailwindcss` | ||
- `ts-node` | ||
- `typescript` | ||
- `vscode-oniguruma` | ||
- `undici` | ||
- `webpack` | ||
- `websocket` | ||
- `zeromq` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,5 +16,5 @@ | |
"registry": "https://registry.npmjs.org/" | ||
} | ||
}, | ||
"version": "14.3.0-canary.44" | ||
"version": "14.3.0-canary.45" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.