Skip to content

Commit e816a9a

Browse files
authored
Update deploy-nextjs-hybrid.md
1 parent affbd3f commit e816a9a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,16 @@ Begin by initializing a new Next.js application.
5454

5555
1. Stop the development server by pressing **CMD/CTRL + C**.
5656

57+
## Configure your Next.js app for deployment to Static Web Apps
58+
59+
To configure your Next.js app for deployment to Static Web Apps, enable the standalone feature for your Next.js project. This will reduce the size of your Next.js project and ensure it is below the size limits for Static Web Apps. Refer to the [standalone](#enable-standalone-feature) section for more information.
60+
61+
```js
62+
module.exports ={
63+
output:"standalone",
64+
}
65+
```
66+
5767
## Deploy your static website
5868

5969
The following steps show how to link your app to Azure Static Web Apps. Once in Azure, you can deploy the application to a production environment.

0 commit comments

Comments
 (0)