diff --git a/.github/labeler.json b/.github/labeler.json index e6dba259a3f3..31276e92749a 100644 --- a/.github/labeler.json +++ b/.github/labeler.json @@ -73,7 +73,8 @@ { "type": "user", "pattern": "leerob" }, { "type": "user", "pattern": "manovotny" }, { "type": "user", "pattern": "molebox" }, - { "type": "user", "pattern": "timeyoutakeit" } + { "type": "user", "pattern": "timeyoutakeit" }, + { "type": "user", "pattern": "icyJoseph" } ], "created-by: Turbopack team": [ { "type": "user", "pattern": "bgw" }, diff --git a/docs/01-app/01-getting-started/06-css.mdx b/docs/01-app/01-getting-started/06-css.mdx index 0fe047e12a34..4231cf65c2ca 100644 --- a/docs/01-app/01-getting-started/06-css.mdx +++ b/docs/01-app/01-getting-started/06-css.mdx @@ -232,6 +232,7 @@ function ExampleDialog(props) { ``` + ## Ordering and Merging Next.js optimizes CSS during production builds by automatically chunking (merging) stylesheets. The **order of your CSS** depends on the **order you import styles in your code**. diff --git a/docs/01-app/01-getting-started/07-partial-prerendering.mdx b/docs/01-app/01-getting-started/07-partial-prerendering.mdx index 19b5f2595f82..5afd67faabfa 100644 --- a/docs/01-app/01-getting-started/07-partial-prerendering.mdx +++ b/docs/01-app/01-getting-started/07-partial-prerendering.mdx @@ -87,7 +87,7 @@ const nextConfig = { The `'incremental'` value allows you to adopt PPR for specific routes: -```tsx filename="/app/dashboard/layout.tsx" highlight={3} +```tsx filename="/app/dashboard/layout.tsx" export const experimental_ppr = true export default function Layout({ children }: { children: React.ReactNode }) { @@ -95,7 +95,7 @@ export default function Layout({ children }: { children: React.ReactNode }) { } ``` -```jsx filename="/app/dashboard/layout.js" highlight={3} +```jsx filename="/app/dashboard/layout.js" export const experimental_ppr = true export default function Layout({ children }) { diff --git a/docs/01-app/02-guides/authentication.mdx b/docs/01-app/02-guides/authentication.mdx index 457033b8528a..a6d454045394 100644 --- a/docs/01-app/02-guides/authentication.mdx +++ b/docs/01-app/02-guides/authentication.mdx @@ -561,7 +561,7 @@ const secretKey = process.env.SESSION_SECRET #### 2. Encrypting and decrypting sessions -Next, you can use your preferred [session management library](#session-management-libraries) to encrypt and decrypt sessions. Continuing from the previous example, we'll use [Jose](https://www.npmjs.com/package/jose) (compatible with the [Edge Runtime](/docs/app/building-your-application/rendering/edge-and-nodejs-runtimes)) and React's [`server-only`](https://www.npmjs.com/package/server-only) package to ensure that your session management logic is only executed on the server. +Next, you can use your preferred [session management library](#session-management-libraries) to encrypt and decrypt sessions. Continuing from the previous example, we'll use [Jose](https://www.npmjs.com/package/jose) (compatible with the [Edge Runtime](/docs/app/api-reference/edge)) and React's [`server-only`](https://www.npmjs.com/package/server-only) package to ensure that your session management logic is only executed on the server. ```tsx filename="app/lib/session.ts" switcher import 'server-only' @@ -1121,7 +1121,7 @@ While Middleware can be useful for initial checks, it should not be your only li > **Tips**: > > - In Middleware, you can also read cookies using `req.cookies.get('session').value`. -> - Middleware uses the [Edge Runtime](/docs/app/building-your-application/rendering/edge-and-nodejs-runtimes), check if your Auth library and session management library are compatible. +> - Middleware uses the [Edge Runtime](/docs/app/api-reference/edge), check if your Auth library and session management library are compatible. > - You can use the `matcher` property in the Middleware to specify which routes Middleware should run on. Although, for auth, it's recommended Middleware runs on all routes. diff --git a/docs/01-app/02-guides/instrumentation.mdx b/docs/01-app/02-guides/instrumentation.mdx index 86a6b538b0dc..f93d6c908a58 100644 --- a/docs/01-app/02-guides/instrumentation.mdx +++ b/docs/01-app/02-guides/instrumentation.mdx @@ -69,7 +69,7 @@ export async function register() { ### Importing runtime-specific code -Next.js calls `register` in all environments, so it's important to conditionally import any code that doesn't support specific runtimes (e.g. [Edge or Node.js](/docs/app/building-your-application/rendering/edge-and-nodejs-runtimes)). You can use the `NEXT_RUNTIME` environment variable to get the current environment: +Next.js calls `register` in all environments, so it's important to conditionally import any code that doesn't support specific runtimes (e.g. [Edge or Node.js](/docs/app/api-reference/edge)). You can use the `NEXT_RUNTIME` environment variable to get the current environment: ```ts filename="instrumentation.ts" switcher export async function register() { diff --git a/docs/01-app/02-guides/self-hosting.mdx b/docs/01-app/02-guides/self-hosting.mdx index 5e75745d89b6..071f3b5d98b9 100644 --- a/docs/01-app/02-guides/self-hosting.mdx +++ b/docs/01-app/02-guides/self-hosting.mdx @@ -26,7 +26,7 @@ Image Optimization can be used with a [static export](/docs/app/guides/static-ex [Middleware](/docs/app/building-your-application/routing/middleware) works self-hosted with zero configuration when deploying using `next start`. Since it requires access to the incoming request, it is not supported when using a [static export](/docs/app/guides/static-exports). -Middleware uses a [runtime](/docs/app/building-your-application/rendering/edge-and-nodejs-runtimes) that is a subset of all available Node.js APIs to help ensure low latency, since it may run in front of every route or asset in your application. If you do not want this, you can use the [full Node.js runtime](/blog/next-15-2#nodejs-middleware-experimental) to run Middleware. +Middleware uses the [Edge runtime](/docs/app/api-reference/edge), a subset of all available Node.js APIs to help ensure low latency, since it may run in front of every route or asset in your application. If you do not want this, you can use the [full Node.js runtime](/blog/next-15-2#nodejs-middleware-experimental) to run Middleware. If you are looking to add logic (or use an external package) that requires all Node.js APIs, you might be able to move this logic to a [layout](/docs/app/building-your-application/routing/layouts-and-templates#layouts) as a [Server Component](/docs/app/building-your-application/rendering/server-components). For example, checking [headers](/docs/app/api-reference/functions/headers) and [redirecting](/docs/app/api-reference/functions/redirect). You can also use headers, cookies, or query parameters to [redirect](/docs/app/api-reference/config/next-config-js/redirects#header-cookie-and-query-matching) or [rewrite](/docs/app/api-reference/config/next-config-js/rewrites#header-cookie-and-query-matching) through `next.config.js`. If that does not work, you can also use a [custom server](/docs/pages/guides/custom-server). diff --git a/docs/01-app/03-building-your-application/02-data-fetching/03-server-actions-and-mutations.mdx b/docs/01-app/03-building-your-application/02-data-fetching/03-server-actions-and-mutations.mdx index c5ded24d30af..d3bccbd789ad 100644 --- a/docs/01-app/03-building-your-application/02-data-fetching/03-server-actions-and-mutations.mdx +++ b/docs/01-app/03-building-your-application/02-data-fetching/03-server-actions-and-mutations.mdx @@ -124,7 +124,7 @@ Runtime type-checking will still ensure you don't accidentally pass a function t - Behind the scenes, actions use the `POST` method, and only this HTTP method can invoke them. - The arguments and return value of Server Actions must be serializable by React. See the React docs for a list of [serializable arguments and values](https://react.dev/reference/react/use-server#serializable-parameters-and-return-values). - Server Actions are functions. This means they can be reused anywhere in your application. -- Server Actions inherit the [runtime](/docs/app/building-your-application/rendering/edge-and-nodejs-runtimes) from the page or layout they are used on. +- Server Actions inherit the runtime from the page or layout they are used on. - Server Actions inherit the [Route Segment Config](/docs/app/api-reference/file-conventions/route-segment-config) from the page or layout they are used on, including fields like `maxDuration`. ## Examples diff --git a/docs/01-app/03-building-your-application/03-rendering/05-edge-and-nodejs-runtimes.mdx b/docs/01-app/03-building-your-application/03-rendering/05-edge-and-nodejs-runtimes.mdx deleted file mode 100644 index fc542ca2c5a3..000000000000 --- a/docs/01-app/03-building-your-application/03-rendering/05-edge-and-nodejs-runtimes.mdx +++ /dev/null @@ -1,28 +0,0 @@ ---- -title: Runtimes -description: Learn about the switchable runtimes (Edge and Node.js) in Next.js. -related: - description: View the Edge Runtime API reference. - links: - - app/api-reference/edge ---- - -{/* The content of this doc is shared between the app and pages router. You can use the `Content` component to add content that is specific to the Pages Router. Any shared content should not be wrapped in a component. */} - -Next.js has two server runtimes you can use in your application: - -- The **Node.js Runtime** (default), which has access to all Node.js APIs and compatible packages from the ecosystem. -- The **Edge Runtime** which contains a more limited [set of APIs](/docs/app/api-reference/edge). - -The Edge Runtime is the default runtime for [Middleware](/docs/app/building-your-application/routing/middleware). However, this can be changed to the Node.js runtime. See the [Middleware documentation](/docs/app/building-your-application/routing/middleware#runtime) for more details. - -## Use Cases - -- The Node.js Runtime is used for rendering your application. -- The Edge Runtime is used for Middleware (routing rules like redirects, rewrites, and setting headers). - -## Caveats - -- The Edge Runtime does not support all Node.js APIs. Some packages may not work as expected. Learn more about the unsupported APIs in the [Edge Runtime](/docs/app/api-reference/edge#unsupported-apis). -- The Edge Runtime does not support Incremental Static Regeneration (ISR). -- Both runtimes can support [streaming](/docs/app/building-your-application/routing/loading-ui-and-streaming) depending on your deployment infrastructure. diff --git a/docs/01-app/05-api-reference/03-file-conventions/middleware.mdx b/docs/01-app/05-api-reference/03-file-conventions/middleware.mdx index 802fbbe01f00..643908aa92d1 100644 --- a/docs/01-app/05-api-reference/03-file-conventions/middleware.mdx +++ b/docs/01-app/05-api-reference/03-file-conventions/middleware.mdx @@ -122,7 +122,7 @@ Middleware can use the [`NextResponse`](/docs/app/building-your-application/rout ## Runtime -Middleware only supports the [Edge runtime](/docs/app/building-your-application/rendering/edge-and-nodejs-runtimes). The Node.js runtime cannot be used. +Middleware uses [Edge runtime](/docs/app/api-reference/edge) by default. If you do not want this, you can use the [full Node.js runtime](/blog/next-15-2#nodejs-middleware-experimental) to run Middleware. ## Version History diff --git a/docs/01-app/05-api-reference/03-file-conventions/route-segment-config.mdx b/docs/01-app/05-api-reference/03-file-conventions/route-segment-config.mdx index 53f156b39d7e..e8f95a0bb346 100644 --- a/docs/01-app/05-api-reference/03-file-conventions/route-segment-config.mdx +++ b/docs/01-app/05-api-reference/03-file-conventions/route-segment-config.mdx @@ -161,7 +161,7 @@ export const fetchCache = 'auto' ### `runtime` -We recommend using the Node.js runtime for rendering your application, and the Edge runtime for Middleware (only supported option). +We recommend using the Node.js runtime for rendering your application, and the Edge runtime for Middleware. ```tsx filename="layout.tsx | page.tsx | route.ts" switcher export const runtime = 'nodejs' @@ -176,8 +176,6 @@ export const runtime = 'nodejs' - **`'nodejs'`** (default) - **`'edge'`** -Learn more about the [different runtimes](/docs/app/building-your-application/rendering/edge-and-nodejs-runtimes). - ### `preferredRegion` ```tsx filename="layout.tsx | page.tsx | route.ts" switcher diff --git a/docs/01-app/05-api-reference/05-config/03-eslint.mdx b/docs/01-app/05-api-reference/05-config/03-eslint.mdx index b71a807d7bf2..0bc8f55304b7 100644 --- a/docs/01-app/05-api-reference/05-config/03-eslint.mdx +++ b/docs/01-app/05-api-reference/05-config/03-eslint.mdx @@ -72,7 +72,7 @@ next lint --dir pages --dir utils --file bar.js If you're using `eslint-plugin-next` in a project where Next.js isn't installed in your root directory (such as a monorepo), you can tell `eslint-plugin-next` where to find your Next.js application using the `settings` property in your `.eslintrc`: -```mjs filename="eslint.config.mjs" +```js filename="eslint.config.mjs" import { FlatCompat } from '@eslint/eslintrc' const compat = new FlatCompat({ @@ -108,7 +108,7 @@ next lint --no-cache If you would like to modify or disable any rules provided by the supported plugins (`react`, `react-hooks`, `next`), you can directly change them using the `rules` property in your `.eslintrc`: -```mjs filename="eslint.config.mjs" +```js filename="eslint.config.mjs" import { FlatCompat } from '@eslint/eslintrc' const compat = new FlatCompat({ @@ -133,7 +133,7 @@ export default eslintConfig The `next/core-web-vitals` rule set is enabled when `next lint` is run for the first time and the **strict** option is selected. -```mjs filename="eslint.config.mjs" +```js filename="eslint.config.mjs" import { FlatCompat } from '@eslint/eslintrc' const compat = new FlatCompat({ @@ -158,7 +158,7 @@ export default eslintConfig In addition to the Next.js ESLint rules, `create-next-app --typescript` will also add TypeScript-specific lint rules with `next/typescript` to your config: -```mjs filename="eslint.config.mjs" +```js filename="eslint.config.mjs" import { FlatCompat } from '@eslint/eslintrc' const compat = new FlatCompat({ @@ -196,7 +196,7 @@ bun add --dev eslint-config-prettier Then, add `prettier` to your existing ESLint config: -```mjs filename="eslint.config.mjs" +```js filename="eslint.config.mjs" import { FlatCompat } from '@eslint/eslintrc' const compat = new FlatCompat({ @@ -305,7 +305,7 @@ This eliminates the risk of collisions or errors that can occur due to importing If you already use a separate ESLint configuration and want to include `eslint-config-next`, ensure that it is extended last after other configurations. For example: -```mjs filename="eslint.config.mjs" +```js filename="eslint.config.mjs" import js from '@eslint/js' import { FlatCompat } from '@eslint/eslintrc' diff --git a/docs/01-app/05-api-reference/07-edge.mdx b/docs/01-app/05-api-reference/07-edge.mdx index 7e42494ec750..fa2530f24af5 100644 --- a/docs/01-app/05-api-reference/07-edge.mdx +++ b/docs/01-app/05-api-reference/07-edge.mdx @@ -5,9 +5,22 @@ description: API Reference for the Edge Runtime. {/* The content of this doc is shared between the app and pages router. You can use the `Content` component to add content that is specific to the Pages Router. Any shared content should not be wrapped in a component. */} -The Next.js Edge Runtime is used for Middleware and supports the following APIs: +Next.js has two server runtimes you can use in your application: -## Network APIs +- The **Node.js Runtime** (default), which has access to all Node.js APIs and is used for rendering your application. +- The **Edge Runtime** which contains a more limited [set of APIs](#reference), used in [Middleware](/docs/app/api-reference/file-conventions/middleware). + +## Caveats + +- The Edge Runtime does not support all Node.js APIs. Some packages may not work as expected. +- The Edge Runtime does not support Incremental Static Regeneration (ISR). +- Both runtimes can support [streaming](/docs/app/building-your-application/routing/loading-ui-and-streaming) depending on your deployment adapter. + +## Reference + +The Edge Runtime supports the following APIs: + +### Network APIs | API | Description | | ------------------------------------------------------------------------------- | --------------------------------- | @@ -22,7 +35,7 @@ The Next.js Edge Runtime is used for Middleware and supports the following APIs: | [`URLSearchParams`](https://developer.mozilla.org/docs/Web/API/URLSearchParams) | Represents URL search parameters | | [`WebSocket`](https://developer.mozilla.org/docs/Web/API/WebSocket) | Represents a websocket connection | -## Encoding APIs +### Encoding APIs | API | Description | | ----------------------------------------------------------------------------------- | ---------------------------------- | @@ -33,7 +46,7 @@ The Next.js Edge Runtime is used for Middleware and supports the following APIs: | [`TextEncoder`](https://developer.mozilla.org/docs/Web/API/TextEncoder) | Encodes a string into a Uint8Array | | [`TextEncoderStream`](https://developer.mozilla.org/docs/Web/API/TextEncoderStream) | Chainable encoder for streams | -## Stream APIs +### Stream APIs | API | Description | | ------------------------------------------------------------------------------------------------------- | --------------------------------------- | @@ -44,7 +57,7 @@ The Next.js Edge Runtime is used for Middleware and supports the following APIs: | [`WritableStream`](https://developer.mozilla.org/docs/Web/API/WritableStream) | Represents a writable stream | | [`WritableStreamDefaultWriter`](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter) | Represents a writer of a WritableStream | -## Crypto APIs +### Crypto APIs | API | Description | | ------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | @@ -52,7 +65,7 @@ The Next.js Edge Runtime is used for Middleware and supports the following APIs: | [`CryptoKey`](https://developer.mozilla.org/docs/Web/API/CryptoKey) | Represents a cryptographic key | | [`SubtleCrypto`](https://developer.mozilla.org/docs/Web/API/SubtleCrypto) | Provides access to common cryptographic primitives, like hashing, signing, encryption or decryption | -## Web Standard APIs +### Web Standard APIs | API | Description | | --------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | @@ -120,15 +133,15 @@ The Next.js Edge Runtime is used for Middleware and supports the following APIs: | [`WeakSet`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WeakSet) | Represents a collection of objects in which each object may occur only once | | [`WebAssembly`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly) | Provides access to WebAssembly | -## Next.js Specific Polyfills +### Next.js Specific Polyfills - [`AsyncLocalStorage`](https://nodejs.org/api/async_context.html#class-asynclocalstorage) -## Environment Variables +### Environment Variables You can use `process.env` to access [Environment Variables](/docs/app/guides/environment-variables) for both `next dev` and `next build`. -## Unsupported APIs +### Unsupported APIs The Edge Runtime has some restrictions including: diff --git a/docs/02-pages/03-building-your-application/02-rendering/06-edge-and-nodejs-runtimes.mdx b/docs/02-pages/03-building-your-application/02-rendering/06-edge-and-nodejs-runtimes.mdx deleted file mode 100644 index 37529e88b62e..000000000000 --- a/docs/02-pages/03-building-your-application/02-rendering/06-edge-and-nodejs-runtimes.mdx +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: Edge and Node.js Runtimes -description: Learn more about the switchable runtimes (Edge and Node.js) in Next.js. -source: app/building-your-application/rendering/edge-and-nodejs-runtimes ---- - -{/* DO NOT EDIT. The content of this doc is generated from the source above. To edit the content of this page, navigate to the source page in your editor. You can use the `Content` component to add content that is specific to the Pages Router. Any shared content should not be wrapped in a component. */} diff --git a/errors/invalid-page-config.mdx b/errors/invalid-page-config.mdx index 1a5a5965c780..884c4422b437 100644 --- a/errors/invalid-page-config.mdx +++ b/errors/invalid-page-config.mdx @@ -118,4 +118,4 @@ export const config = {} - [Enabling AMP Support](/docs/pages/guides/amp) - [API Routes Request Helpers](/docs/pages/building-your-application/routing/api-routes) -- [Edge and Node.js Runtimes](/docs/pages/building-your-application/rendering/edge-and-nodejs-runtimes) +- [Edge Runtime](/docs/app/api-reference/edge) diff --git a/packages/font/src/google/font-data.json b/packages/font/src/google/font-data.json index 768879513405..b5f39eab6ecc 100644 --- a/packages/font/src/google/font-data.json +++ b/packages/font/src/google/font-data.json @@ -3787,6 +3787,11 @@ "styles": ["normal"], "subsets": ["latin", "latin-ext"] }, + "Exile": { + "weights": ["400"], + "styles": ["normal"], + "subsets": ["latin", "latin-ext"] + }, "Exo": { "weights": [ "100", @@ -11774,7 +11779,108 @@ "defaultValue": 400 } ], - "subsets": ["emoji", "latin", "latin-ext", "math", "vietnamese"] + "subsets": [ + "cyrillic", + "cyrillic-ext", + "emoji", + "greek", + "latin", + "latin-ext", + "math", + "vietnamese" + ] + }, + "Playpen Sans Arabic": { + "weights": [ + "100", + "200", + "300", + "400", + "500", + "600", + "700", + "800", + "variable" + ], + "styles": ["normal"], + "axes": [ + { + "tag": "wght", + "min": 100, + "max": 800, + "defaultValue": 400 + } + ], + "subsets": ["arabic", "emoji", "latin", "latin-ext", "math"] + }, + "Playpen Sans Deva": { + "weights": [ + "100", + "200", + "300", + "400", + "500", + "600", + "700", + "800", + "variable" + ], + "styles": ["normal"], + "axes": [ + { + "tag": "wght", + "min": 100, + "max": 800, + "defaultValue": 400 + } + ], + "subsets": ["devanagari", "emoji", "latin", "latin-ext"] + }, + "Playpen Sans Hebrew": { + "weights": [ + "100", + "200", + "300", + "400", + "500", + "600", + "700", + "800", + "variable" + ], + "styles": ["normal"], + "axes": [ + { + "tag": "wght", + "min": 100, + "max": 800, + "defaultValue": 400 + } + ], + "subsets": ["emoji", "hebrew", "latin", "latin-ext", "math"] + }, + "Playpen Sans Thai": { + "weights": [ + "100", + "200", + "300", + "400", + "500", + "600", + "700", + "800", + "variable" + ], + "styles": ["normal"], + "axes": [ + { + "tag": "wght", + "min": 100, + "max": 800, + "defaultValue": 400 + } + ], + "subsets": ["emoji", "latin", "latin-ext", "math", "thai"] }, "Playwrite AR": { "weights": ["100", "200", "300", "400", "variable"], diff --git a/packages/font/src/google/index.ts b/packages/font/src/google/index.ts index 7192a443ac6b..437d2c4a255d 100644 --- a/packages/font/src/google/index.ts +++ b/packages/font/src/google/index.ts @@ -6569,6 +6569,18 @@ export declare function Ewert< adjustFontFallback?: boolean subsets?: Array<'latin' | 'latin-ext'> }): T extends undefined ? NextFont : NextFontWithVariable +export declare function Exile< + T extends CssVariable | undefined = undefined, +>(options: { + weight: '400' | Array<'400'> + style?: 'normal' | Array<'normal'> + display?: Display + variable?: T + preload?: boolean + fallback?: string[] + adjustFontFallback?: boolean + subsets?: Array<'latin' | 'latin-ext'> +}): T extends undefined ? NextFont : NextFontWithVariable export declare function Exo< T extends CssVariable | undefined = undefined, >(options?: { @@ -19626,7 +19638,104 @@ export declare function Playpen_Sans< preload?: boolean fallback?: string[] adjustFontFallback?: boolean - subsets?: Array<'emoji' | 'latin' | 'latin-ext' | 'math' | 'vietnamese'> + subsets?: Array< + | 'cyrillic' + | 'cyrillic-ext' + | 'emoji' + | 'greek' + | 'latin' + | 'latin-ext' + | 'math' + | 'vietnamese' + > +}): T extends undefined ? NextFont : NextFontWithVariable +export declare function Playpen_Sans_Arabic< + T extends CssVariable | undefined = undefined, +>(options?: { + weight?: + | '100' + | '200' + | '300' + | '400' + | '500' + | '600' + | '700' + | '800' + | 'variable' + | Array<'100' | '200' | '300' | '400' | '500' | '600' | '700' | '800'> + style?: 'normal' | Array<'normal'> + display?: Display + variable?: T + preload?: boolean + fallback?: string[] + adjustFontFallback?: boolean + subsets?: Array<'arabic' | 'emoji' | 'latin' | 'latin-ext' | 'math'> +}): T extends undefined ? NextFont : NextFontWithVariable +export declare function Playpen_Sans_Deva< + T extends CssVariable | undefined = undefined, +>(options?: { + weight?: + | '100' + | '200' + | '300' + | '400' + | '500' + | '600' + | '700' + | '800' + | 'variable' + | Array<'100' | '200' | '300' | '400' | '500' | '600' | '700' | '800'> + style?: 'normal' | Array<'normal'> + display?: Display + variable?: T + preload?: boolean + fallback?: string[] + adjustFontFallback?: boolean + subsets?: Array<'devanagari' | 'emoji' | 'latin' | 'latin-ext'> +}): T extends undefined ? NextFont : NextFontWithVariable +export declare function Playpen_Sans_Hebrew< + T extends CssVariable | undefined = undefined, +>(options?: { + weight?: + | '100' + | '200' + | '300' + | '400' + | '500' + | '600' + | '700' + | '800' + | 'variable' + | Array<'100' | '200' | '300' | '400' | '500' | '600' | '700' | '800'> + style?: 'normal' | Array<'normal'> + display?: Display + variable?: T + preload?: boolean + fallback?: string[] + adjustFontFallback?: boolean + subsets?: Array<'emoji' | 'hebrew' | 'latin' | 'latin-ext' | 'math'> +}): T extends undefined ? NextFont : NextFontWithVariable +export declare function Playpen_Sans_Thai< + T extends CssVariable | undefined = undefined, +>(options?: { + weight?: + | '100' + | '200' + | '300' + | '400' + | '500' + | '600' + | '700' + | '800' + | 'variable' + | Array<'100' | '200' | '300' | '400' | '500' | '600' | '700' | '800'> + style?: 'normal' | Array<'normal'> + display?: Display + variable?: T + preload?: boolean + fallback?: string[] + adjustFontFallback?: boolean + subsets?: Array<'emoji' | 'latin' | 'latin-ext' | 'math' | 'thai'> }): T extends undefined ? NextFont : NextFontWithVariable export declare function Playwrite_AR< T extends CssVariable | undefined = undefined, diff --git a/test/rspack-build-tests-manifest.json b/test/rspack-build-tests-manifest.json index 5b90df385d23..63c696ee1c65 100644 --- a/test/rspack-build-tests-manifest.json +++ b/test/rspack-build-tests-manifest.json @@ -9796,6 +9796,8 @@ "CLI Usage dev -p reserved", "CLI Usage dev Allow retry if default port is already in use", "CLI Usage dev NODE_OPTIONS='--inspect'", + "CLI Usage dev NODE_OPTIONS='--require=file with spaces to --require.js'", + "CLI Usage dev NODE_OPTIONS='--require=file with spaces to-require-with-node-require-option.js'", "CLI Usage dev PORT=0", "CLI Usage dev custom directory", "CLI Usage dev invalid directory", @@ -9808,6 +9810,8 @@ "CLI Usage export run export command", "CLI Usage info --help", "CLI Usage info -h", + "CLI Usage info should print output", + "CLI Usage info should print output with next.config.mjs", "CLI Usage no command --help", "CLI Usage no command --version", "CLI Usage no command -h", @@ -9841,12 +9845,7 @@ "CLI Usage production mode telemetry should not throw UnhandledPromiseRejectionWarning", "CLI Usage production mode telemetry should warn when unknown argument provided" ], - "failed": [ - "CLI Usage dev NODE_OPTIONS='--require=file with spaces to --require.js'", - "CLI Usage dev NODE_OPTIONS='--require=file with spaces to-require-with-node-require-option.js'", - "CLI Usage info should print output", - "CLI Usage info should print output with next.config.mjs" - ], + "failed": [], "pending": [], "flakey": [], "runtimeError": false @@ -9949,8 +9948,10 @@ "config-output-export should error with getStaticPaths and fallback true", "config-output-export should error with getStaticProps and revalidate 10 seconds (ISR)", "config-output-export should error with middleware function", + "config-output-export should work with getStaticPaths and fallback false", "config-output-export should work with getStaticProps and revalidate false", "config-output-export should work with getStaticProps and without revalidate", + "config-output-export should work with static homepage", "config-output-export when hasNextSupport = false should error with \"headers\" config", "config-output-export when hasNextSupport = false should error with \"redirects\" config", "config-output-export when hasNextSupport = false should error with \"rewrites\" config", @@ -9958,10 +9959,7 @@ "config-output-export when hasNextSupport = true should error with \"redirects\" config", "config-output-export when hasNextSupport = true should error with \"rewrites\" config" ], - "failed": [ - "config-output-export should work with getStaticPaths and fallback false", - "config-output-export should work with static homepage" - ], + "failed": [], "pending": [], "flakey": [], "runtimeError": false @@ -10967,9 +10965,10 @@ "distDir With basic usage production mode should build the app within the given `dist` directory", "distDir With basic usage production mode should not build the app within the default `.next` directory", "distDir With basic usage production mode should render the page", + "distDir production mode should handle undefined distDir", "distDir production mode should throw error with invalid distDir" ], - "failed": ["distDir production mode should handle undefined distDir"], + "failed": [], "pending": [ "distDir development mode should build the app within the given `dist` directory", "distDir development mode should not build the app within the default `.next` directory", @@ -17092,10 +17091,10 @@ "runtimeError": false }, "test/integration/production-build-dir/test/index.test.js": { - "passed": [], - "failed": [ + "passed": [ "Production Custom Build Directory production mode With basic usage should render the page" ], + "failed": [], "pending": [], "flakey": [], "runtimeError": false @@ -18249,6 +18248,13 @@ "flakey": [], "runtimeError": false }, + "test/production/adapter-config/adapter-config.test.ts": { + "passed": ["adapter-config should apply modifyConfig from adapter"], + "failed": [], + "pending": [], + "flakey": [], + "runtimeError": false + }, "test/production/allow-development-build/allow-development-build.test.ts": { "passed": [ "allow-development-build with NODE_ENV not set to development should fail the build with a message about not setting NODE_ENV", diff --git a/test/rspack-dev-tests-manifest.json b/test/rspack-dev-tests-manifest.json index 278f4a98f425..d3ecfb60afdb 100644 --- a/test/rspack-dev-tests-manifest.json +++ b/test/rspack-dev-tests-manifest.json @@ -2300,8 +2300,8 @@ "runtimeError": false }, "test/development/app-dir/build-error-logs/build-error-logs.test.ts": { - "passed": ["build-error-logs should only log error a single time"], - "failed": [], + "passed": [], + "failed": ["build-error-logs should only log error a single time"], "pending": [], "flakey": [], "runtimeError": false @@ -2747,7 +2747,7 @@ ], "pending": [], "flakey": [], - "runtimeError": false + "runtimeError": true }, "test/development/basic/allowed-dev-origins.test.ts": { "passed": [ @@ -13248,6 +13248,8 @@ "CLI Usage dev -p reserved", "CLI Usage dev Allow retry if default port is already in use", "CLI Usage dev NODE_OPTIONS='--inspect'", + "CLI Usage dev NODE_OPTIONS='--require=file with spaces to --require.js'", + "CLI Usage dev NODE_OPTIONS='--require=file with spaces to-require-with-node-require-option.js'", "CLI Usage dev PORT=0", "CLI Usage dev custom directory", "CLI Usage dev invalid directory", @@ -13260,6 +13262,8 @@ "CLI Usage export run export command", "CLI Usage info --help", "CLI Usage info -h", + "CLI Usage info should print output", + "CLI Usage info should print output with next.config.mjs", "CLI Usage no command --help", "CLI Usage no command --version", "CLI Usage no command -h", @@ -13267,12 +13271,7 @@ "CLI Usage no command detects command typos", "CLI Usage no command invalid directory" ], - "failed": [ - "CLI Usage dev NODE_OPTIONS='--require=file with spaces to --require.js'", - "CLI Usage dev NODE_OPTIONS='--require=file with spaces to-require-with-node-require-option.js'", - "CLI Usage info should print output", - "CLI Usage info should print output with next.config.mjs" - ], + "failed": [], "pending": [ "CLI Usage production mode build --help", "CLI Usage production mode build -h", @@ -13403,8 +13402,10 @@ "config-output-export should error with getStaticPaths and fallback true", "config-output-export should error with getStaticProps and revalidate 10 seconds (ISR)", "config-output-export should error with middleware function", + "config-output-export should work with getStaticPaths and fallback false", "config-output-export should work with getStaticProps and revalidate false", "config-output-export should work with getStaticProps and without revalidate", + "config-output-export should work with static homepage", "config-output-export when hasNextSupport = false should error with \"headers\" config", "config-output-export when hasNextSupport = false should error with \"redirects\" config", "config-output-export when hasNextSupport = false should error with \"rewrites\" config", @@ -13412,10 +13413,7 @@ "config-output-export when hasNextSupport = true should error with \"redirects\" config", "config-output-export when hasNextSupport = true should error with \"rewrites\" config" ], - "failed": [ - "config-output-export should work with getStaticPaths and fallback false", - "config-output-export should work with static homepage" - ], + "failed": [], "pending": [], "flakey": [], "runtimeError": false diff --git a/test/turbopack-build-tests-manifest.json b/test/turbopack-build-tests-manifest.json index 8eb8499cc9a7..ad569dd6a11c 100644 --- a/test/turbopack-build-tests-manifest.json +++ b/test/turbopack-build-tests-manifest.json @@ -18122,6 +18122,13 @@ "flakey": [], "runtimeError": false }, + "test/production/adapter-config/adapter-config.test.ts": { + "passed": ["adapter-config should apply modifyConfig from adapter"], + "failed": [], + "pending": [], + "flakey": [], + "runtimeError": false + }, "test/production/allow-development-build/allow-development-build.test.ts": { "passed": [ "allow-development-build with NODE_ENV not set to development should fail the build with a message about not setting NODE_ENV",