Skip to content

Commit

Permalink
Merge pull request #170 from OpenSprinkler/bug/attempt-fix-for-merge
Browse files Browse the repository at this point in the history
Attempt fix for deployment on merge
  • Loading branch information
salbahra authored Nov 26, 2024
2 parents f7b260f + bc20b5a commit c8131b7
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/firebase-hosting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,5 @@ jobs:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_OPENSPRINKLER_UI }}
projectId: opensprinkler-ui
target: opensprinkler-betaui
target: opensprinkler-devui
channelId: ${{ github.event_name == 'push' && 'live' || '' }}
38 changes: 38 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,44 @@
]
}
]
},
{
"site": "opensprinkler-devui",
"public": "build/firmware",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"headers": [
{
"source": "**/*",
"headers": [
{
"key": "Access-Control-Allow-Origin",
"value": "*"
}
]
},
{
"source": "**/*.@(jpg|jpeg|gif|png|svg|webp)",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=3600, s-maxage=31536000"
}
]
},
{
"source": "**/*.@(js|css)",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=3600, s-maxage=31536000"
}
]
}
]
}
]
}

0 comments on commit c8131b7

Please sign in to comment.