Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions articles/static-web-apps/add-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,14 @@ npm run build --prod

Install npm dependencies and build the app into the _build_ folder.

```bash
npm install
npm run build
```
# [React (Vite)](#tab/react-vite)

Install npm dependencies and build the app into the _dist_ folder.

```bash
npm install
npm run build
Expand Down Expand Up @@ -319,7 +327,14 @@ Run the frontend app and API together by starting the app with the Static Web Ap
```bash
swa start build --api-location api
```
# [React (Vite)](#tab/react-vite)

Pass the build output folder (`dist`) and the API folder (`api`) to the CLI.

```bash
swa start dist --api-location api
```

# [Vue](#tab/vue)

Pass the build output folder (`dist`) and the API folder (`api`) to the CLI.
Expand Down