Skip to content

Commit 194013c

Browse files
authored
Merge pull request #188343 from alexwolfmsft/alexw-blazor-quickstart
added blazor path
2 parents 5548de2 + eb01931 commit 194013c

File tree

6 files changed

+37
-1
lines changed

6 files changed

+37
-1
lines changed

articles/static-web-apps/get-started-cli.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,19 @@ Now that the repository is created, you can create a static web app from the Azu
108108
--login-with-github
109109
```
110110
111+
# [Blazor](#tab/blazor)
112+
113+
```azurecli
114+
az staticwebapp create \
115+
--name my-first-static-web-app \
116+
--resource-group my-swa-group \
117+
--source https://github.com/$GITHUB_USER_NAME/my-first-static-web-app \
118+
--location "eastus2" \
119+
--branch main \
120+
--app-location "Client" \
121+
--output-location "wwwroot" \
122+
--login-with-github
123+
```
111124
---
112125
113126
> [!IMPORTANT]

articles/static-web-apps/get-started-portal.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,13 @@ After you sign in with GitHub, enter the repository information.
8585
1. Keep the default value in the _App location_ box.
8686
1. Leave the _Api location_ box empty.
8787
1. Keep the default value in the _App artifact location_ box.
88+
89+
# [Blazor](#tab/blazor)
90+
91+
1. Select **Blazor** from the _Build Presets_ dropdown.
92+
1. Keep the default value of **Client** in the _App location_ box.
93+
1. Leave the _Api location_ box empty.
94+
1. Keep the default value of **wwwroot** in the _App artifact location_ box.
8895

8996
---
9097

articles/static-web-apps/getting-started.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,14 @@ If you don't already have the [Azure Static Web Apps extension for Visual Studio
110110

111111
Enter **dist** as the build output location.
112112

113+
# [Blazor](#tab/blazor)
114+
115+
:::image type="content" source="media/getting-started/extension-presets-blazor.png" alt-text="Application presets: Blazor":::
116+
117+
Enter **Client** as the location for the application files, since this is the root folder of the Blazor project.
118+
119+
Enter **wwwroot** as the build output location.
120+
113121
---
114122

115123
1. Once the app is created, a confirmation notification is shown in Visual Studio Code.
@@ -132,7 +140,7 @@ If you're not going to continue to use this application, you can delete the Azur
132140

133141
In the Visual Studio Code Explorer window, return to the _Static Web Apps_ section and right-click on **my-first-static-web-app** and select **Delete**.
134142

135-
:::image type="content" source="media/getting-started/extension-delete.png" alt-text="Delete app":::
143+
:::image type="content" source="media/getting-started/extension-delete.png" alt-text="Delete app":::
136144

137145
## Next steps
138146

articles/static-web-apps/index.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ landingContent:
3131
url: ./getting-started.md?tabs=react
3232
- text: Deploy a Vue app
3333
url: ./getting-started.md?tabs=vue
34+
- text: Deploy a Blazor app
35+
url: ./getting-started.md?tabs=blazor
3436
- linkListType: learn
3537
links:
3638
- text: Publish an Angular, React, Svelte, or Vue JavaScript app
15.6 KB
Loading

includes/static-web-apps-get-started-create-repo.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ This article uses a GitHub template repository to make it easy for you to get st
3737
1. [https://github.com/staticwebdev/vue-basic/generate](https://github.com/login?return_to=%2Fstaticwebdev%2Fvue-basic%2Fgenerate)
3838
1. Name your repository **my-first-static-web-app**
3939

40+
# [Blazor](#tab/blazor)
41+
42+
1. Navigate to the following location to create a new repository:
43+
1. [https://github.com/staticwebdev/blazor-basic/generate](https://github.com/login?return_to=%2Fstaticwebdev%2Fblazor-basic%2Fgenerate)
44+
1. Name your repository **my-first-static-web-app**
45+
4046
---
4147

4248
Select **Create repository from template**.

0 commit comments

Comments
 (0)