Skip to content

Commit 0d418fd

Browse files
Fix image attachment syntax
1 parent def1e7b commit 0d418fd

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

articles/static-apps/deploy-nextjs.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ Rather than using the Next.js CLI to create an app, you can use a starter reposi
5353

5454
Navigate to <http://localhost:3000> to open the app, where you should see the following website open in your preferred browser:
5555

56-
![Start Next.js app](./media/deploy-nextjs/start-nextjs-app.png)
56+
:::image type="content" source="media/deploy-nextjs/start-nextjs-app.png" alt-text="Start Next.js app":::
5757

5858
When you click on a framework/library, you should see a details page about the selected item:
5959

60-
![Details page](./media/deploy-nextjs/start-nextjs-details.png)
60+
:::image type="content" source="media/deploy-nextjs/start-nextjs-details.png" alt-text="Details page":::
6161

6262
## Generate a static website from Next.js build
6363

@@ -136,7 +136,8 @@ The following steps show how to link the app you just pushed to GitHub to Azure
136136
1. In the *Region* drop-down, choose a region closest to you.
137137
1. Select **Free** from the SKU drop-down.
138138
139-
![Create Static Web App](./media/deploy-nextjs/create-static-web-app.png)
139+
140+
:::image type="content" source="media/deploy-nextjs/create-static-web-app.png" alt-text="Create Static Web App":::
140141
141142
### Add a GitHub repository
142143
@@ -147,15 +148,15 @@ The new Static Web Apps account needs access to the repository with your Next.js
147148
1. Find and select the name of the repository you created earlier.
148149
1. Choose **master** as the branch from the *Branch* drop-down.
149150
150-
![Connect GitHub](./media/deploy-nextjs/connect-github.png)
151+
:::image type="content" source="media/deploy-nextjs/connect-github.png" alt-text="Connect GitHub":::
151152
152153
### Configure the build process
153154
154155
Azure Static Web Apps is built to automatically carry out common tasks like installing npm modules and running `npm run build` during each deployment. There are, however, a few settings like the application source folder and the build destination folder that you need to configure manually.
155156
156157
1. Click on the **Build** tab to configure the static output folder.
157158
158-
![Build tab](./media/deploy-nextjs/build-tab.png)
159+
:::image type="content" source="media/deploy-nextjs/build-tab.png" alt-text="Build tab":::
159160
160161
1. Type **out** in the *App artifact location* text box.
161162
@@ -184,7 +185,7 @@ Return to the terminal and run the following command `git pull origin maser`.
184185
185186
Navigate to the newly-deployed site and click on one of the framework or library logos. Instead of getting a details page, you get a 404 error page.
186187
187-
![404 on dynamic routes](./media/deploy-nextjs/404-in-production.png)
188+
:::image type="content" source="media/deploy-nextjs/404-in-production.png" alt-text="404 on dynamic routes":::
188189
189190
The reason for this error is because Next.js only generated the home page based on the application configuration.
190191
@@ -220,8 +221,8 @@ The reason for this error is because Next.js only generated the home page based
220221
221222
2. Push the new changes to your GitHub repository and wait for a few minutes while GitHub Actions builds your site again. After the build is complete, the 404 error disappears.
222223
223-
![404 on dynamic routes fixed](./media/deploy-nextjs/404-in-production-fixed.png)
224-
224+
225+
:::image type="content" source="media/deploy-nextjs/404-in-production-fixed.png" alt-text="404 on dynamic routes fixed":::
225226
226227
> [!div class="nextstepaction"]
227228
> [Set up a custom domain](custom-domain.md)

articles/static-apps/deploy-nuxtjs.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ You can set up a new Nuxt.js project using `create-nuxt-app`. Instead of a new p
5151

5252
Navigate to <http://localhost:3000> to open the app, where you should see the following website open in your preferred browser:
5353

54-
![Start Nuxt.js app](./media/deploy-nuxtjs/start-nuxtjs-app.png)
54+
:::image type="content" source="media/deploy-nuxtjs/start-nuxtjs-app.png" alt-text="Start Nuxt.js app":::
5555

5656
When you click on a framework/library, you should see a details page about the selected item:
5757

58-
![Details page](./media/deploy-nuxtjs/start-nuxtjs-details.png)
58+
:::image type="content" source="media/deploy-nuxtjs/start-nuxtjs-details.png" alt-text="Details page":::
5959

6060
## Generate a static website from Nuxt.js build
6161

@@ -119,7 +119,7 @@ The following steps show how to link the app you just pushed to GitHub to Azure
119119
1. In the *Region* drop-down, choose a region closest to you.
120120
1. Select **Free** from the SKU drop-down.
121121
122-
![Create Static Web App](./media/deploy-nuxtjs/create-static-web-app.png)
122+
:::image type="content" source="media/deploy-nuxtjs/create-static-web-app.png" alt-text="Create Static Web App":::
123123
124124
### Add a GitHub repository
125125
@@ -130,15 +130,15 @@ The new Static Web Apps account needs access to the repository with your Nuxt.js
130130
1. Find and select the name of the repository you created earlier.
131131
1. Choose **master** as the branch from the *Branch* drop-down.
132132
133-
![Connect GitHub](./media/deploy-nuxtjs/connect-github.png)
133+
:::image type="content" source="media/deploy-nuxtjs/connect-github.png" alt-text="Connect GitHub":::
134134
135135
### Configure the build process
136136
137137
Azure Static Web Apps is built to automatically carry out common tasks like installing npm modules and running `npm run build` during each deployment. There are, however, a few settings like the application source folder and the build destination folder that you need to configure manually.
138138
139139
1. Click on the **Build** tab to configure the static output folder.
140140
141-
![Build tab](./media/deploy-nuxtjs/build-tab.png)
141+
:::image type="content" source="media/deploy-nuxtjs/build-tab.png" alt-text="Build tab":::
142142
143143
1. Type **dist** in the *App artifact location* text box.
144144
@@ -167,7 +167,7 @@ Return to the terminal and run the following command `git pull origin maser`.
167167
168168
Navigate to the newly-deployed site and click on one of the framework or library logos. Instead of getting a details page, you get a 404 error page.
169169
170-
![404 on dynamic routes](./media/deploy-nuxtjs/404-in-production.png)
170+
:::image type="content" source="media/deploy-nuxtjs/404-in-production.png" alt-text="404 on dynamic routes":::
171171
172172
The reason for this is, Nuxt.js generated the static site, it only did so for the home page. Nuxt.js can generate equivalent static `.html` files for every `.vue` pages file, but there's an exception.
173173

@@ -204,8 +204,7 @@ If the page is a dynamic page, for example `_id.vue`, it won't have enough infor
204204
205205
2. Push the new changes to your GitHub repository and wait for a few minutes while GitHub Actions builds your site again. After the build is complete, the 404 error disappears.
206206
207-
![404 on dynamic routes fixed](./media/deploy-nuxtjs/404-in-production-fixed.png)
208-
207+
:::image type="content" source="media/deploy-nuxtjs/404-in-production-fixed.png" alt-text="404 on dynamic routes fixed":::
209208
210209
## Next Steps
211210
> [!div class="nextstepaction"]

0 commit comments

Comments
 (0)