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
+28-58Lines changed: 28 additions & 58 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,6 @@ 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.
41
40
42
41
## Create a static web app
43
42
@@ -48,104 +47,75 @@ If you don't already have the [Azure Static Web Apps extension for Visual Studio
48
47
> [!NOTE]
49
48
> 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
49
51
-
2. Select <kbd>F1</kbd> to open the Visual Studio Code command palette.
50
+
1. Select <kbd>F1</kbd> to open the Visual Studio Code command palette.
52
51
53
-
3. Enter **Create static web app** in the command box.
52
+
1. Enter **Create static web app** in the command box.
54
53
55
-
4. Select *Azure Static Web Apps: Create static web app...*.
54
+
1. Select *Azure Static Web Apps: Create static web app...*.
56
55
57
-
# [No Framework](#tab/vanilla-javascript)
56
+
1. Select your Azure subscription.
58
57
59
-
| Setting | Value |
60
-
| --- | --- |
61
-
| Name | Enter **my-first-static-web-app**|
62
-
| Region | Select the region closest to you. |
63
-
| Framework | Select **Custom**. |
58
+
1. Enter **my-first-static-web-app** for the application name.
64
59
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**. |
60
+
1. Select the region closest to you.
72
61
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**. |
80
-
81
-
# [React](#tab/react)
82
-
83
-
| Setting | Value |
84
-
| --- | --- |
85
-
| Name | Enter **my-first-static-web-app**|
86
-
| Region | Select the region closest to you. |
87
-
| Framework | Select **React**. |
88
-
89
-
# [Vue](#tab/vue)
90
-
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.
62
+
1. Enter the settings values that match your framework choice.
100
63
101
64
# [No Framework](#tab/vanilla-javascript)
102
65
103
66
| Setting | Value |
104
67
| --- | --- |
105
-
| Location of application code | Enter **/src**|
106
-
| Build location | Enter **/src**|
68
+
| Framework | Select **Custom**|
69
+
| Location of application code | Enter `/src`|
70
+
| Build location | Enter `/src`|
107
71
108
72
# [Angular](#tab/angular)
109
73
110
74
| Setting | Value |
111
75
| --- | --- |
112
-
| Location of application code | Enter **/**|
113
-
| Build location | Enter **dist/angular-basic**|
76
+
| Framework | Select **Angular**|
77
+
| Location of application code | Enter `/`|
78
+
| Build location | Enter `dist/angular-basic`|
114
79
115
80
# [Blazor](#tab/blazor)
116
81
117
82
| Setting | Value |
118
83
| --- | --- |
119
-
| Location of application code | Enter **Client**|
120
-
| Build location | Enter **wwwroot**|
84
+
| Framework | Select **Blazor**|
85
+
| Location of application code | Enter `Client`|
86
+
| Build location | Enter `wwwroot`|
121
87
122
88
# [React](#tab/react)
123
89
124
90
| Setting | Value |
125
91
| --- | --- |
126
-
| Location of application code | Enter **/**|
127
-
| Build location | Enter **build**|
92
+
| Framework | Select **React**|
93
+
| Location of application code | Enter `/`|
94
+
| Build location | Enter `build`|
128
95
129
96
# [Vue](#tab/vue)
130
97
131
98
| Setting | Value |
132
99
| --- | --- |
133
-
| Location of application code | Enter **/**|
134
-
| Build location | Enter **dist**|
100
+
| Framework | Select **Vue.js**|
101
+
| Location of application code | Enter `/`|
102
+
| Build location | Enter `dist`|
135
103
136
104
---
137
105
138
-
6. Once the app is created, a confirmation notification is shown in Visual Studio Code.
106
+
1. Once the app is created, a confirmation notification is shown in Visual Studio Code.
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.
111
+
142
112
As the deployment is in progress, the Visual Studio Code extension reports the build status to you.
143
113
144
114
:::image type="content" source="media/getting-started/extension-waiting-for-deployment.png" alt-text="Waiting for deployment":::
145
115
146
116
Once the deployment is complete, you can navigate directly to your website.
147
117
148
-
7. To view the website in the browser, right-click the project in the Static Web Apps extension, and select **Browse Site**.
118
+
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