Skip to content

Commit 4256aa3

Browse files
authored
Merge pull request #106438 from Reshmi-Sriram/patch-2
Highlight the 100Mb constraint
2 parents 8c8a41b + ce2d599 commit 4256aa3

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

articles/static-web-apps/deploy-nextjs-hybrid.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,18 @@ Once the workflow is complete, you can refresh the browser to view your web app.
111111

112112
Now any changes made to the `main` branch starts a new build and deployment of your website.
113113

114+
115+
>[!NOTE]
116+
>If you have trouble deploying a Next.js Hybrid application with more than 100Mb app size, use the `standalone` feature of Next.js. Refer to the [standalone](#enable-standalone-feature) section for more information.
117+
118+
114119
### Sync changes
115120

116121
When you created the app, Azure Static Web Apps created a GitHub Actions file in your repository. Synchronize with the server by pulling down the latest to your local repository.
117122

118123
Return to the terminal and run the following command `git pull origin main`.
119124

125+
120126
## Add Server-Rendered data
121127

122128
To insert data server-rendered data to a Next.js page, you need to first export a special function.

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ During the preview, the following features of Static Web Apps are unsupported fo
1212

1313
- APIs using Azure Functions, Azure AppService, Azure Container Apps or Azure API Management.
1414
- Deployment via the SWA CLI.
15-
1615
- Static Web Apps provided Authentication and Authorization.
1716
- Instead, you can use the Next.js [Authentication](https://nextjs.org/docs/authentication) feature.
1817
- The `staticwebapps.config.json` file.
1918
- Features such as custom headers and routing can be controlled using the `next.config.js` file.
2019
- `skip_app_build` and `skip_api_build` can't be used.
21-
- The maximum app size for the hybrid Next.js application is 100 MB. Use [standalone](../articles/static-web-apps/deploy-nextjs-hybrid.md#enable-standalone-feature) feature by Next.js for optimized app sizes. If this is not sufficient either, consider using Static HTML exported Next.js apps if your requirement is more than 100 MB.
2220
- Incremental static regeneration (ISR) does not support caching images and [on-demand revalidation](https://nextjs.org/docs/basic-features/data-fetching/incremental-static-regeneration#using-on-demand-revalidation)
21+
22+
> [!NOTE]
23+
> The maximum app size for the hybrid Next.js application is 100 MB. Use [standalone](../articles/static-web-apps/deploy-nextjs-hybrid.md#enable-standalone-feature) feature by Next.js for optimized app sizes. If this is not sufficient, consider using [Static HTML exported Next.js](../articles/static-web-apps/deploy-nextjs-static-export.md) if your app size requirement is more than 100 MB.

0 commit comments

Comments
 (0)