Skip to content

Commit c9cada7

Browse files
Merge pull request #288394 from craigshoemaker/patch-17
[Static Web Apps] Update: Next.js unsupported include file -> skip_api_build details
2 parents 4cfa4f4 + 32df7f9 commit c9cada7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

includes/static-web-apps-nextjs-unsupported.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
author: craigshoemaker
33
ms.service: azure-static-web-apps
44
ms.topic: include
5-
ms.date: 06/12/2024
5+
ms.date: 10/15/2024
66
ms.author: cshoe
77
---
88

@@ -17,7 +17,7 @@ The following features of Static Web Apps are unsupported for Next.js with hybri
1717
- Route rewrites to routes within the Next.js application must be configured within `next.config.js`.
1818
- The configuration within the `staticwebapp.config.json` file takes precedence over the configuration within `next.config.js`.
1919
- Configuration for the Next.js site should be handled using `next.config.js` for full feature compatibility.
20-
- **Build skipping**: The `skip_app_build` and `skip_api_build` features aren't supported in the `Azure/static-web-apps-deploy@v1` deployment image.
20+
- **Build skipping**: For Next.js applications if `skip_api_build=true`, Static Web Apps does not remove dev dependencies or add the sharp package by default. If you want these optimizations, add them to your custom build steps before passing `skip_app_build=true`.
2121
- **Incremental static regeneration (ISR)**: Image caching isn't supported.
2222

2323
> [!NOTE]

0 commit comments

Comments
 (0)