Skip to content

Commit fb3f5fe

Browse files
committed
Merge branch 'main' into next
2 parents c14e28f + b0aec22 commit fb3f5fe

File tree

7 files changed

+31
-52
lines changed

7 files changed

+31
-52
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,21 @@ For uat, replace `azure-dev` with `azure-uat`.
5454

5555
The compiled applications can be found there in ./dist/apps/ folder.
5656

57+
# Deployment
58+
59+
These steps describe how to do a deployment from your machine to target static web app.
60+
61+
Get a deployment token:
62+
```
63+
az staticwebapp secrets list --name <static-webapp-name> --query "properties.apiKey"
64+
```
65+
66+
Deploy code:
67+
```
68+
npm i -g @azure/static-web-apps-cli
69+
npx swa deploy ./dist/apps/<app-name> --deployment-token <insert-deployment-token> --env production
70+
```
71+
5772
# Useful commands
5873

5974
## Development server

apps/back-office/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"output": "/assets/"
2828
},
2929
"apps/back-office/src/favicon.ico",
30-
"apps/back-office/src/web.config",
30+
"apps/back-office/src/staticwebapp.config.json",
3131
{
3232
"glob": "**/*",
3333
"input": "node_modules/tinymce",
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"navigationFallback": {
3+
"rewrite": "/index.html",
4+
5+
"exclude": ["/assets/", "/.css", "/*.js"]
6+
}
7+
}

apps/back-office/src/web.config

Lines changed: 0 additions & 25 deletions
This file was deleted.

apps/front-office/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"output": "/assets/"
2828
},
2929
"apps/front-office/src/favicon.ico",
30-
"apps/front-office/src/web.config",
30+
"apps/front-office/src/staticwebapp.config.json",
3131
{
3232
"glob": "**/*",
3333
"input": "node_modules/tinymce",
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"navigationFallback": {
3+
"rewrite": "/index.html",
4+
5+
"exclude": ["/assets/", "/.css", "/*.js"]
6+
}
7+
}

apps/front-office/src/web.config

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)