You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/static-web-apps/deploy-nextjs.md
+24-23Lines changed: 24 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,18 @@
1
1
---
2
-
title: "Tutorial: Deploy static-rendered Next.js websites on Azure Static Web Apps"
2
+
title: "Deploy static-rendered Next.js websites on Azure Static Web Apps"
3
3
description: "Generate and deploy Next.js dynamic sites with Azure Static Web Apps."
4
4
services: static-web-apps
5
5
author: craigshoemaker
6
6
ms.service: static-web-apps
7
7
ms.topic: tutorial
8
-
ms.date: 03/26/2022
8
+
ms.date: 10/11/2022
9
9
ms.author: cshoe
10
-
ms.custom: devx-track-js
10
+
ms.custom: devx-track-js, engagement-fy23
11
11
---
12
12
13
-
14
13
# Deploy static-rendered Next.js websites on Azure Static Web Apps
15
14
16
-
In this tutorial, you learn to deploy a [Next.js](https://nextjs.org) generated static website to [Azure Static Web Apps](overview.md). For more information about Next.js specifics, see the [starter template's readme](https://github.com/staticwebdev/nextjs-starter#readme).
15
+
In this tutorial, learn to deploy a [Next.js](https://nextjs.org) generated static website to [Azure Static Web Apps](overview.md). For more information about Next.js specifics, see the [starter template readme](https://github.com/staticwebdev/nextjs-starter#readme).
17
16
18
17
## Prerequisites
19
18
@@ -23,37 +22,37 @@ In this tutorial, you learn to deploy a [Next.js](https://nextjs.org) generated
23
22
24
23
## Set up a Next.js app
25
24
26
-
Rather than using the Next.js CLI to create your app, you can use a starter repository. The starter repository contains an existing Next.js application that supports dynamic routes.
25
+
Rather than using the Next.js CLI to create your app, you can use a starter repository. The starter repository contains an existing Next.js app that supports dynamic routes.
27
26
28
27
To begin, create a new repository under your GitHub account from a template repository.
29
28
30
-
1.Navigate to [https://github.com/staticwebdev/nextjs-starter/generate](https://github.com/login?return_to=/staticwebdev/nextjs-starter/generate)
31
-
1. Name the repository **nextjs-starter**
32
-
1. Next, clone the new repo to your machine. Make sure to replace `<YOUR_GITHUB_ACCOUNT_NAME>` with your account name.
29
+
1.Go to [https://github.com/staticwebdev/nextjs-starter/generate](https://github.com/login?return_to=/staticwebdev/nextjs-starter/generate).
30
+
2. Name the repository **nextjs-starter**.
31
+
3. Clone the new repo to your machine. Make sure to replace `<YOUR_GITHUB_ACCOUNT_NAME>` with your account name.
@@ -67,10 +66,10 @@ The following steps show how to link your app to Azure Static Web Apps. Once in
67
66
68
67
### Create a static app
69
68
70
-
1. Navigate to the [Azure portal](https://portal.azure.com).
69
+
1. Go to the [Azure portal](https://portal.azure.com).
71
70
1. Select **Create a Resource**.
72
71
1. Search for**Static Web Apps**.
73
-
1. Select **Static Web Apps**.
72
+
1. Select **Static Web App**.
74
73
1. Select **Create**.
75
74
1. On the _Basics_ tab, enter the following values.
76
75
@@ -83,7 +82,7 @@ The following steps show how to link your app to Azure Static Web Apps. Once in
83
82
| _Region for Azure Functions API and staging environments_ | Select a region closest to you. |
84
83
| _Source_ |**GitHub**|
85
84
86
-
1. Select **Sign in with GitHub** and authenticate with GitHub.
85
+
1. Select **Sign in with GitHub** and authenticate with GitHub, if prompted.
87
86
88
87
1. Enter the following GitHub values.
89
88
@@ -109,11 +108,11 @@ The following steps show how to link your app to Azure Static Web Apps. Once in
109
108
110
109
1. Once the deployment completes select, **Go to resource**.
111
110
112
-
1. On the _Overview_ window, selectthe*URL* link to open your deployed application.
111
+
2. On the _Overview_ window, selectthe*URL* link to open your deployed app.
113
112
114
113
If the website doesn't load immediately, then the build is still running. Once the workflow is complete, you can refresh the browser to view your web app.
115
114
116
-
To check the status of the Actions workflow, navigate to the Actions dashboard for your repository:
115
+
To check the status of the Actions workflow, go to the *Actions* dashboard for your repository:
0 commit comments