File tree Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -78,38 +78,38 @@ Use the following steps to deploy an application that has API endpoints.
78
78
79
79
1. Ensure the API language runtime version in the *staticwebapp.config.json* file is set correctly, for example:
80
80
81
- ```json
82
- {
83
- "platform": {
84
- "apiRuntime": "node:16"
81
+ ```json
82
+ {
83
+ "platform": {
84
+ "apiRuntime": "node:16"
85
+ }
85
86
}
86
- }
87
- ```
88
-
89
- > [ !NOTE]
90
- > If your project doesn't have the * staticwebapp.config.json* file, add one under your ` outputLocation ` folder.
87
+ ```
88
+
89
+ > [!NOTE]
90
+ > If your project doesn't have the *staticwebapp.config.json* file, add one under your `outputLocation` folder.
91
91
92
92
1. Deploy your app:
93
93
94
- ``` azstatic-cli
95
- swa deploy ./my-dist --api-location ./api
96
- ```
94
+ ```azstatic-cli
95
+ swa deploy ./my-dist --api-location ./api
96
+ ```
97
97
98
98
### Deploy a Blazor app
99
99
100
100
You can deploy a Blazor app using the following steps.
101
101
102
102
1. Build your Blazor app in **Release** mode:
103
103
104
- ``` azstatic-cli
105
- dotnet publish -c Release -o bin/publish
106
- ```
104
+ ```azstatic-cli
105
+ dotnet publish -c Release -o bin/publish
106
+ ```
107
107
108
108
1. From the root of your project, run the deploy command:
109
109
110
- ``` azstatic-cli
111
- swa deploy ./bin/publish/wwwroot --api-location ./Api
112
- ```
110
+ ```azstatic-cli
111
+ swa deploy ./bin/publish/wwwroot --api-location ./Api
112
+ ```
113
113
114
114
## Deploy using a configuration file
115
115
You can’t perform that action at this time.
0 commit comments