Skip to content
Closed
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Azure Static Web Apps CI/CD

on:
push:
branches:
- feature/129

jobs:
build_and_deploy_job:
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- uses: actions/checkout@v3
with:
submodules: true
lfs: false
fetch-depth: 0
fetch-tags: true
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_GREEN_GLACIER_0DF749200 }}
action: 'upload'
app_location: '/'
api_location: ''
output_location: 'dist'
54 changes: 0 additions & 54 deletions .github/workflows/deploy.yml

This file was deleted.

16 changes: 16 additions & 0 deletions public/staticwebapp.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"routes": [
{
"route": "/api/*",
"allowedRoles": ["anonymous"],
"rewrite": "https://smunity.co.kr/api/{*path}"
}
],
"navigationFallback": {
"rewrite": "/index.html",
"exclude": ["/assets/*", "/*.css", "/*.js", "/*.png", "/*.jpg", "/*.svg", "/*.ico"]
},
"globalHeaders": {
"X-Content-Type-Options": "nosniff"
}
}
Loading