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/getting-started.md
+30-57Lines changed: 30 additions & 57 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,12 +5,12 @@ services: static-web-apps
5
5
author: craigshoemaker
6
6
ms.service: static-web-apps
7
7
ms.topic: quickstart
8
-
ms.date: 08/10/2023
8
+
ms.date: 04/02/2024
9
9
ms.author: cshoe
10
10
ms.custom: mode-other
11
11
---
12
12
13
-
# Quickstart: Building your first static site with Azure Static Web Apps
13
+
# Quickstart: Build your first static site with Azure Static Web Apps
14
14
15
15
Azure Static Web Apps publishes a website by building an app from a code repository. In this quickstart, you deploy an application to Azure Static Web apps using the Visual Studio Code extension.
16
16
@@ -37,7 +37,7 @@ If you don't already have the [Azure Static Web Apps extension for Visual Studio
37
37
1. Select **View** > **Extensions**.
38
38
1. In the **Search Extensions in Marketplace**, type **Azure Static Web Apps**.
39
39
1. Select **Install** for **Azure Static Web Apps**.
40
-
2. The extension installs into Visual Studio Code.
40
+
1. The extension installs into Visual Studio Code.
41
41
42
42
## Create a static web app
43
43
@@ -48,94 +48,65 @@ If you don't already have the [Azure Static Web Apps extension for Visual Studio
48
48
> [!NOTE]
49
49
> You are required to sign in to Azure and GitHub in Visual Studio Code to continue. If you are not already authenticated, the extension prompts you to sign in to both services during the creation process.
50
50
51
-
2. Select <kbd>F1</kbd> to open the Visual Studio Code command palette.
51
+
1. Select <kbd>F1</kbd> to open the Visual Studio Code command palette.
52
52
53
-
3. Enter **Create static web app** in the command box.
53
+
1. Enter **Create static web app** in the command box.
54
54
55
-
4. Select *Azure Static Web Apps: Create static web app...*.
55
+
1. Select *Azure Static Web Apps: Create static web app...*.
56
56
57
-
# [No Framework](#tab/vanilla-javascript)
58
-
59
-
| Setting | Value |
60
-
| --- | --- |
61
-
| Name | Enter **my-first-static-web-app**|
62
-
| Region | Select the region closest to you. |
63
-
| Framework | Select **Custom**. |
64
-
65
-
# [Angular](#tab/angular)
66
-
67
-
| Setting | Value |
68
-
| --- | --- |
69
-
| Name | Enter **my-first-static-web-app**|
70
-
| Region | Select the region closest to you. |
71
-
| Framework | Select **Angular**. |
72
-
73
-
# [Blazor](#tab/blazor)
74
-
75
-
| Setting | Value |
76
-
| --- | --- |
77
-
| Name | Enter **my-first-static-web-app**|
78
-
| Region | Select the region closest to you. |
79
-
| Framework | Select **Blazor**. |
57
+
1. Select configuration values based on choice of framework.
80
58
81
-
# [React](#tab/react)
59
+
1. Select your Azure subscription.
82
60
83
-
| Setting | Value |
84
-
| --- | --- |
85
-
| Name | Enter **my-first-static-web-app**|
86
-
| Region | Select the region closest to you. |
87
-
| Framework | Select **React**. |
61
+
1. Enter **my-first-static-web-app** for the application name.
88
62
89
-
# [Vue](#tab/vue)
63
+
1. Select the region closest to you.
90
64
91
-
| Setting | Value |
92
-
| --- | --- |
93
-
| Name | Enter **my-first-static-web-app**|
94
-
| Region | Select the region closest to you. |
95
-
| Framework | Select **Vue.js**. |
96
-
97
-
---
98
-
99
-
5. Enter the settings values that match your framework preset choice.
65
+
1. Enter the settings values that match your framework choice.
100
66
101
67
# [No Framework](#tab/vanilla-javascript)
102
68
103
69
| Setting | Value |
104
70
| --- | --- |
105
-
| Location of application code | Enter **/src**|
106
-
| Build location | Enter **/src**|
71
+
| Framework | Select **Custom**. |
72
+
| Location of application code | Enter **/src**. |
73
+
| Build location | Enter **/src**. |
107
74
108
75
# [Angular](#tab/angular)
109
76
110
77
| Setting | Value |
111
78
| --- | --- |
112
-
| Location of application code | Enter **/**|
113
-
| Build location | Enter **dist/angular-basic**|
79
+
| Framework | Select **Angular**. |
80
+
| Location of application code | Enter **/**. |
81
+
| Build location | Enter **dist/angular-basic**. |
114
82
115
83
# [Blazor](#tab/blazor)
116
84
117
85
| Setting | Value |
118
86
| --- | --- |
119
-
| Location of application code | Enter **Client**|
120
-
| Build location | Enter **wwwroot**|
87
+
| Framework | Select **Blazor**. |
88
+
| Location of application code | Enter **Client**. |
89
+
| Build location | Enter **wwwroot**. |
121
90
122
91
# [React](#tab/react)
123
92
124
93
| Setting | Value |
125
94
| --- | --- |
126
-
| Location of application code | Enter **/**|
127
-
| Build location | Enter **build**|
95
+
| Framework | Select **React**. |
96
+
| Location of application code | Enter **/**. |
97
+
| Build location | Enter **build**. |
128
98
129
99
# [Vue](#tab/vue)
130
100
131
101
| Setting | Value |
132
102
| --- | --- |
133
-
| Location of application code | Enter **/**|
134
-
| Build location | Enter **dist**|
103
+
| Framework | Select **Vue.js**. |
104
+
| Location of application code | Enter **/**. |
105
+
| Build location | Enter **dist**. |
135
106
136
107
---
137
108
138
-
6. Once the app is created, a confirmation notification is shown in Visual Studio Code.
109
+
1. Once the app is created, a confirmation notification is shown in Visual Studio Code.
@@ -145,7 +116,9 @@ If you don't already have the [Azure Static Web Apps extension for Visual Studio
145
116
146
117
Once the deployment is complete, you can navigate directly to your website.
147
118
148
-
7. To view the website in the browser, right-click the project in the Static Web Apps extension, and select **Browse Site**.
119
+
If GitHub presents you with a button labeled **Enable Actions on this repository**, select the button to allow the build action to run on your repository.
120
+
121
+
1. To view the website in the browser, right-click the project in the Static Web Apps extension, and select **Browse Site**.
0 commit comments