-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
[REQUIRED] Environment info
firebase-tools:
9.10.0
Platform:
macOS (v10.15.7)
[REQUIRED] Test case
Login with at least two accounts by using Firebase CLI (email1@example.com & email2@example.com)
Switch to one account
firebase login:use email1@example.com
Deploy hosting to email2@example.com's projects. It shouldn't allow this action.
[REQUIRED] Steps to reproduce
The first time that I tried, it didn't allow me to deploy anything, so I closed everything and tried to log in again. It's able to deploy but there is a weird behavior where you can still deploy to another account's projects when the default account is different.
Login with at least two accounts.
Set one account as a default
firebase login:use email1@example.com
Check the default account
dalenguyen$ firebase login:list
Logged in as email1@example.com
Other available accounts (switch with "firebase login:use")
- email2@example.com
Start to deploy to a channel / hosting to email2@example.com
$ firebase hosting:channel:deploy CHANNEL_ID --only TARGET_ID
=== Deploying to 'TARGET_ID'...
....
✔ Deploy complete!
✔ hosting:channel: Channel URL (TARGET_ID):... [expires 2021-05-10 17:56:22]
✨ Done in 5.61s.
[REQUIRED] Expected behavior
When setting email1@example.com as default, it shouldn't able to deploy to email2@example.com projects.
[REQUIRED] Actual behavior
When setting email1@example.com as default, it ables to deploy to email2@example.com projects.
dalenguyen$ yarn deploy:staging:preview --debug
yarn run v1.22.5
$ firebase hosting:channel:deploy test_channel --only test_app-staging --project test-data-staging --debug
[2021-05-03T22:00:48.414Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[2021-05-03T22:00:48.415Z] > authorizing via signed-in user
[2021-05-03T22:00:48.416Z] [iam] checking project test-data-staging for permissions ["firebase.projects.get","firebasehosting.sites.update"]
[2021-05-03T22:00:48.420Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/test-data-staging:testIamPermissions
{"permissions":["firebase.projects.get","firebasehosting.sites.update"]}
[2021-05-03T22:00:48.655Z] <<< HTTP RESPONSE 200 {"content-type":"application/json; charset=UTF-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","date":"Mon, 03 May 2021 22:00:48 GMT","server":"ESF","cache-control":"private","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","server-timing":"gfet4t7; dur=158","alt-svc":"h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","transfer-encoding":"chunked"}
[2021-05-03T22:00:48.657Z] >>> HTTP REQUEST GET https://firebase.googleapis.com/v1beta1/projects/test-data-staging
[2021-05-03T22:00:48.759Z] <<< HTTP RESPONSE 200 {"content-type":"application/json; charset=UTF-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","date":"Mon, 03 May 2021 22:00:48 GMT","server":"ESF","cache-control":"private","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","alt-svc":"h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","transfer-encoding":"chunked"}
[2021-05-03T22:00:48.763Z] > refreshing access token with scopes: []
[2021-05-03T22:00:48.763Z] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token
<request body omitted>
[2021-05-03T22:00:48.869Z] <<< HTTP RESPONSE 200 {"pragma":"no-cache","cache-control":"no-cache, no-store, max-age=0, must-revalidate","expires":"Mon, 01 Jan 1990 00:00:00 GMT","date":"Mon, 03 May 2021 22:00:48 GMT","content-type":"application/json; charset=utf-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","server":"scaffolding on HTTPServer2","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","alt-svc":"h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","transfer-encoding":"chunked"}
[2021-05-03T22:00:48.899Z] >>> [apiv2][query] GET https://firebasehosting.googleapis.com/v1beta1/projects/test-data-staging/sites/test_app-staging/channels/test_channel [none]
[2021-05-03T22:00:49.103Z] <<< [apiv2][status] GET https://firebasehosting.googleapis.com/v1beta1/projects/test-data-staging/sites/test_app-staging/channels/test_channel 200
[2021-05-03T22:00:49.104Z] <<< [apiv2][body] GET https://firebasehosting.googleapis.com/v1beta1/projects/test-data-staging/sites/test_app-staging/channels/test_channel {"name":"projects/421464144655/sites/test_app-staging/channels/test_channel","url":"https://test_app-staging--test_channel-j1gr1wcn.web.app","release":{"name":"projects/421464144655/sites/test_app-staging/channels/test_channel/releases/1620078984266912","version":{"name":"projects/421464144655/sites/test_app-staging/versions/a6118ca092eb999e","status":"FINALIZED","config":{"headers":[{"headers":{"Expires":"0","Cache-Control":"max-age=0, no-cache","Pragma":"no-cache"},"glob":"**/*.html"},{"headers":{"Cache-Control":"max-age=86400"},"glob":"**/*.@(jpg|jpeg|gif|png)"},{"headers":{"Cache-Control":"max-age=86400"},"glob":"**/*.@(css|js)"}],"rewrites":[{"glob":"**","path":"/index.html"}]},"labels":{"deployment-tool":"cli-firebase"},"createTime":"2021-05-03T21:56:23.162343Z","createUser":{"email":"dale@jointest.com"},"finalizeTime":"2021-05-03T21:56:24.560945Z","finalizeUser":{"email":"dale@jointest.com"},"fileCount":"551","versionBytes":"56774043","preview":{}},"type":"DEPLOY","releaseTime":"2021-05-03T21:56:24.266912417Z","releaseUser":{"email":"dale@jointest.com"}},"createTime":"2021-05-03T17:29:29.650282695Z","updateTime":"2021-05-03T21:56:24.266912417Z","retainedReleaseCount":10,"expireTime":"2021-05-10T21:56:22.178219805Z"}
[2021-05-03T22:00:49.104Z] [hosting] found existing channel for site test_app-staging {"name":"projects/421464144655/sites/test_app-staging/channels/test_channel","url":"https://test_app-staging--test_channel-j1gr1wcn.web.app","release":{"name":"projects/421464144655/sites/test_app-staging/channels/test_channel/releases/1620078984266912","version":{"name":"projects/421464144655/sites/test_app-staging/versions/a6118ca092eb999e","status":"FINALIZED","config":{"headers":[{"headers":{"Expires":"0","Cache-Control":"max-age=0, no-cache","Pragma":"no-cache"},"glob":"**/*.html"},{"headers":{"Cache-Control":"max-age=86400"},"glob":"**/*.@(jpg|jpeg|gif|png)"},{"headers":{"Cache-Control":"max-age=86400"},"glob":"**/*.@(css|js)"}],"rewrites":[{"glob":"**","path":"/index.html"}]},"labels":{"deployment-tool":"cli-firebase"},"createTime":"2021-05-03T21:56:23.162343Z","createUser":{"email":"dale@jointest.com"},"finalizeTime":"2021-05-03T21:56:24.560945Z","finalizeUser":{"email":"dale@jointest.com"},"fileCount":"551","versionBytes":"56774043","preview":{}},"type":"DEPLOY","releaseTime":"2021-05-03T21:56:24.266912417Z","releaseUser":{"email":"dale@jointest.com"}},"createTime":"2021-05-03T17:29:29.650282695Z","updateTime":"2021-05-03T21:56:24.266912417Z","retainedReleaseCount":10,"expireTime":"2021-05-10T21:56:22.178219805Z"}
[2021-05-03T22:00:49.105Z] >>> [apiv2][query] PATCH https://firebasehosting.googleapis.com/v1beta1/projects/test-data-staging/sites/test_app-staging/channels/test_channel {"updateMask":"ttl"}
[2021-05-03T22:00:49.105Z] >>> [apiv2][body] PATCH https://firebasehosting.googleapis.com/v1beta1/projects/test-data-staging/sites/test_app-staging/channels/test_channel {"ttl":"604800s"}
[2021-05-03T22:00:49.329Z] <<< [apiv2][status] PATCH https://firebasehosting.googleapis.com/v1beta1/projects/test-data-staging/sites/test_app-staging/channels/test_channel 200
[2021-05-03T22:00:49.329Z] <<< [apiv2][body] PATCH https://firebasehosting.googleapis.com/v1beta1/projects/test-data-staging/sites/test_app-staging/channels/test_channel {"name":"projects/421464144655/sites/test_app-staging/channels/test_channel","url":"https://test_app-staging--test_channel-j1gr1wcn.web.app","release":{"name":"projects/421464144655/sites/test_app-staging/channels/test_channel/releases/1620078984266912","version":{"name":"projects/421464144655/sites/test_app-staging/versions/a6118ca092eb999e","status":"FINALIZED","config":{"headers":[{"headers":{"Cache-Control":"max-age=0, no-cache","Pragma":"no-cache","Expires":"0"},"glob":"**/*.html"},{"headers":{"Cache-Control":"max-age=86400"},"glob":"**/*.@(jpg|jpeg|gif|png)"},{"headers":{"Cache-Control":"max-age=86400"},"glob":"**/*.@(css|js)"}],"rewrites":[{"glob":"**","path":"/index.html"}]},"labels":{"deployment-tool":"cli-firebase"},"createTime":"2021-05-03T21:56:23.162343Z","createUser":{"email":"dale@jointest.com"},"finalizeTime":"2021-05-03T21:56:24.560945Z","finalizeUser":{"email":"dale@jointest.com"},"fileCount":"551","versionBytes":"56774043","preview":{}},"type":"DEPLOY","releaseTime":"2021-05-03T21:56:24.266912417Z","releaseUser":{"email":"dale@jointest.com"}},"createTime":"2021-05-03T17:29:29.650282695Z","updateTime":"2021-05-03T22:00:49.256533551Z","retainedReleaseCount":10,"expireTime":"2021-05-10T22:00:49.256533551Z"}
[2021-05-03T22:00:49.329Z] [hosting] updated TTL for existing channel for site test_app-staging {"name":"projects/421464144655/sites/test_app-staging/channels/test_channel","url":"https://test_app-staging--test_channel-j1gr1wcn.web.app","release":{"name":"projects/421464144655/sites/test_app-staging/channels/test_channel/releases/1620078984266912","version":{"name":"projects/421464144655/sites/test_app-staging/versions/a6118ca092eb999e","status":"FINALIZED","config":{"headers":[{"headers":{"Cache-Control":"max-age=0, no-cache","Pragma":"no-cache","Expires":"0"},"glob":"**/*.html"},{"headers":{"Cache-Control":"max-age=86400"},"glob":"**/*.@(jpg|jpeg|gif|png)"},{"headers":{"Cache-Control":"max-age=86400"},"glob":"**/*.@(css|js)"}],"rewrites":[{"glob":"**","path":"/index.html"}]},"labels":{"deployment-tool":"cli-firebase"},"createTime":"2021-05-03T21:56:23.162343Z","createUser":{"email":"dale@jointest.com"},"finalizeTime":"2021-05-03T21:56:24.560945Z","finalizeUser":{"email":"dale@jointest.com"},"fileCount":"551","versionBytes":"56774043","preview":{}},"type":"DEPLOY","releaseTime":"2021-05-03T21:56:24.266912417Z","releaseUser":{"email":"dale@jointest.com"}},"createTime":"2021-05-03T17:29:29.650282695Z","updateTime":"2021-05-03T22:00:49.256533551Z","retainedReleaseCount":10,"expireTime":"2021-05-10T22:00:49.256533551Z"}
[2021-05-03T22:00:49.330Z] >>> [apiv2][query] GET https://firebasehosting.googleapis.com/v1beta1/projects/test-data-staging/sites/test_app-staging/channels {"pageToken":"","pageSize":10}
[2021-05-03T22:00:49.528Z] <<< [apiv2][status] GET https://firebasehosting.googleapis.com/v1beta1/projects/test-data-staging/sites/test_app-staging/channels 200
[2021-05-03T22:00:49.529Z] <<< [apiv2][body] GET https://firebasehosting.googleapis.com/v1beta1/projects/test-data-staging/sites/test_app-staging/channels {"channels":[{"name":"projects/421464144655/sites/test_app-staging/channels/test_channel","url":"https://test_app-staging--test_channel-j1gr1wcn.web.app","release":{"name":"projects/421464144655/sites/test_app-staging/channels/test_channel/releases/1620078984266912","version":{"name":"projects/421464144655/sites/test_app-staging/versions/a6118ca092eb999e","status":"FINALIZED","config":{"headers":[{"headers":{"Pragma":"no-cache","Expires":"0","Cache-Control":"max-age=0, no-cache"},"glob":"**/*.html"},{"headers":{"Cache-Control":"max-age=86400"},"glob":"**/*.@(jpg|jpeg|gif|png)"},{"headers":{"Cache-Control":"max-age=86400"},"glob":"**/*.@(css|js)"}],"rewrites":[{"glob":"**","path":"/index.html"}]},"labels":{"deployment-tool":"cli-firebase"},"createTime":"2021-05-03T21:56:23.162343Z","createUser":{"email":"dale@jointest.com"},"finalizeTime":"2021-05-03T21:56:24.560945Z","finalizeUser":{"email":"dale@jointest.com"},"fileCount":"551","versionBytes":"56774043","preview":{}},"type":"DEPLOY","releaseTime":"2021-05-03T21:56:24.266912417Z","releaseUser":{"email":"dale@jointest.com"}},"createTime":"2021-05-03T17:29:29.650282695Z","updateTime":"2021-05-03T22:00:49.256533551Z","retainedReleaseCount":10,"expireTime":"2021-05-10T22:00:49.256533551Z"},{"name":"projects/421464144655/sites/test_app-staging/channels/live","url":"https://test_app-staging.web.app","release":{"name":"projects/421464144655/sites/test_app-staging/channels/live/releases/1620076602944413","version":{"name":"projects/421464144655/sites/test_app-staging/versions/70dfc826bc27bbbd","status":"FINALIZED","config":{"headers":[{"headers":{"Pragma":"no-cache","Expires":"0","Cache-Control":"max-age=0, no-cache"},"glob":"**/*.html"},{"headers":{"Cache-Control":"max-age=86400"},"glob":"**/*.@(jpg|jpeg|gif|png)"},{"headers":{"Cache-Control":"max-age=86400"},"glob":"**/*.@(css|js)"}],"rewrites":[{"glob":"**","path":"/index.html"}]},"labels":{"deployment-tool":"cli-firebase"},"createTime":"2021-05-03T21:16:38.768084Z","createUser":{"email":"421464144655@cloudbuild.gserviceaccount.com"},"finalizeTime":"2021-05-03T21:16:43.252086Z","finalizeUser":{"email":"421464144655@cloudbuild.gserviceaccount.com"},"fileCount":"467","versionBytes":"47255217","preview":{}},"type":"DEPLOY","releaseTime":"2021-05-03T21:16:42.944413350Z","releaseUser":{"email":"421464144655@cloudbuild.gserviceaccount.com"}},"createTime":"2020-07-15T18:46:54.865777343Z","updateTime":"2021-05-03T21:16:42.944413350Z","retainedReleaseCount":2147483647,"labels":{"type":"live"}}]}
[2021-05-03T22:00:49.529Z] > refreshing access token with scopes: ["email","https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","openid"]
[2021-05-03T22:00:49.530Z] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token
<request body omitted>
[2021-05-03T22:00:49.617Z] <<< HTTP RESPONSE 200 {"pragma":"no-cache","expires":"Mon, 01 Jan 1990 00:00:00 GMT","date":"Mon, 03 May 2021 22:00:49 GMT","cache-control":"no-cache, no-store, max-age=0, must-revalidate","content-type":"application/json; charset=utf-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","server":"scaffolding on HTTPServer2","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","alt-svc":"h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","transfer-encoding":"chunked"}
[2021-05-03T22:00:49.645Z] >>> HTTP REQUEST GET https://identitytoolkit.googleapis.com/admin/v2/projects/test-data-staging/config
[2021-05-03T22:00:49.794Z] <<< HTTP RESPONSE 200 {"expires":"Mon, 01 Jan 1990 00:00:00 GMT","cache-control":"no-cache, no-store, max-age=0, must-revalidate","date":"Mon, 03 May 2021 22:00:49 GMT","pragma":"no-cache","content-type":"application/json; charset=UTF-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","server":"ESF","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","alt-svc":"h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","transfer-encoding":"chunked"}
[2021-05-03T22:00:49.795Z] >>> HTTP REQUEST PATCH https://identitytoolkit.googleapis.com/admin/v2/projects/test-data-staging/config?update_mask=authorizedDomains
{"authorizedDomains":["localhost","test-data-staging.firebaseapp.com","test-admin-staging.firebaseapp.com","test-admin-staging.web.app","cockpit-staging.jointest.io","apply-staging.jointest.io","10.88.111.11","test-data-staging--sdk-preview-yefmqtsi.web.app","172.29.1.84","test-widget-srp-staging-23--validation-mhyga5nf.web.app","test-data-staging--map-preview-1-z9lmm6gk.web.app","test-data-staging--preview-rk8wl731.web.app","test-admin-staging--preview-fr2xjyie.web.app","test-data-staging--admin-preview-8o7kvtt2.web.app","test-data-staging--test-admin-staging-admin-previe-vc0dlkv2.web.app","test-admin-staging--admin-preview-eigj96z2.web.app","test-apps-staging--map-preview-1-rf3lnjv6.web.app","test-apps-staging--elements-preview-1-o486w85e.web.app","test_app-staging--test_channel-j1gr1wcn.web.app"]}
[2021-05-03T22:00:49.986Z] <<< HTTP RESPONSE 200 {"cache-control":"no-cache, no-store, max-age=0, must-revalidate","date":"Mon, 03 May 2021 22:00:49 GMT","pragma":"no-cache","expires":"Mon, 01 Jan 1990 00:00:00 GMT","content-type":"application/json; charset=UTF-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","server":"ESF","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","alt-svc":"h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","transfer-encoding":"chunked"}
=== Deploying to 'test-data-staging'...
i deploying hosting
[2021-05-03T22:00:49.990Z] >>> HTTP REQUEST POST https://firebasehosting.googleapis.com/v1beta1/sites/test_app-staging/versions
{"config":{"rewrites":[{"glob":"**","path":"/index.html"}],"headers":[{"glob":"**/*.html","headers":{"Cache-Control":"max-age=0, no-cache","Pragma":"no-cache","Expires":"0"}},{"glob":"**/*.@(jpg|jpeg|gif|png)","headers":{"Cache-Control":"max-age=86400"}},{"glob":"**/*.@(css|js)","headers":{"Cache-Control":"max-age=86400"}}]},"labels":{"deployment-tool":"cli-firebase"}}
[2021-05-03T22:00:50.450Z] <<< HTTP RESPONSE 200 {"content-type":"application/json; charset=UTF-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","date":"Mon, 03 May 2021 22:00:50 GMT","server":"ESF","cache-control":"private","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","alt-svc":"h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","transfer-encoding":"chunked"}
i hosting[test_app-staging]: beginning deploy...
i hosting[test_app-staging]: found 549 files in dist/test-app/browser
[2021-05-03T22:00:50.543Z] [hosting] hash cache [ZGlzdC9zaGVycGEtYXBwL2Jyb3dzZXI] stored for 549 files
[2021-05-03T22:00:50.543Z] [hosting][hash queue][FINAL] {"max":4,"min":0,"avg":1.2694570155290716,"active":0,"complete":549,"success":549,"errored":0,"retried":0,"total":549,"elapsed":32}
[2021-05-03T22:00:50.543Z] >>> HTTP REQUEST POST https://firebasehosting.googleapis.com/v1beta1/sites/test_app-staging/versions/2dcc26f6107ee379:populateFiles
<request body omitted>
[2021-05-03T22:00:51.929Z] <<< HTTP RESPONSE 200 {"content-type":"application/json; charset=UTF-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","date":"Mon, 03 May 2021 22:00:51 GMT","server":"ESF","cache-control":"private","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","alt-svc":"h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","transfer-encoding":"chunked"}
[2021-05-03T22:00:51.929Z] [hosting][populate queue][FINAL] {"max":1388,"min":1388,"avg":1388,"active":0,"complete":1,"success":1,"errored":0,"retried":0,"total":1,"elapsed":1388}
[2021-05-03T22:00:51.930Z] [hosting] uploads queued: 0
[2021-05-03T22:00:51.930Z] [hosting][upload queue][FINAL] {"max":0,"min":9999999999,"avg":0,"active":0,"complete":0,"success":0,"errored":0,"retried":0,"total":0,"elapsed":1620079251930}
✔ hosting[test_app-staging]: file upload complete
[2021-05-03T22:00:51.931Z] [hosting] deploy completed after 1480ms
[2021-05-03T22:00:52.002Z] [
{
"config": {
"public": "dist/test-app/browser",
"target": "test_app-staging",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"headers": [
{
"source": "**/*.html",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=0, no-cache"
},
{
"key": "Pragma",
"value": "no-cache"
},
{
"key": "Expires",
"value": "0"
}
]
},
{
"source": "**/*.@(jpg|jpeg|gif|png)",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=86400"
}
]
},
{
"source": "**/*.@(css|js)",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=86400"
}
]
}
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
],
"site": "test_app-staging"
},
"site": "test_app-staging",
"version": "sites/test_app-staging/versions/2dcc26f6107ee379"
}
]
i hosting[test_app-staging]: finalizing version...
[2021-05-03T22:00:52.003Z] >>> HTTP REQUEST PATCH https://firebasehosting.googleapis.com/v1beta1/sites/test_app-staging/versions/2dcc26f6107ee379?updateMask=status
{"status":"FINALIZED"}
[2021-05-03T22:00:52.239Z] <<< HTTP RESPONSE 200 {"content-type":"application/json; charset=UTF-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","date":"Mon, 03 May 2021 22:00:52 GMT","server":"ESF","cache-control":"private","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","alt-svc":"h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","transfer-encoding":"chunked"}
[2021-05-03T22:00:52.240Z] [hosting] finalized version for test_app-staging: {"name":"sites/test_app-staging/versions/2dcc26f6107ee379","status":"FINALIZED","config":{"headers":[{"headers":{"Expires":"0","Cache-Control":"max-age=0, no-cache","Pragma":"no-cache"},"glob":"**/*.html"},{"headers":{"Cache-Control":"max-age=86400"},"glob":"**/*.@(jpg|jpeg|gif|png)"},{"headers":{"Cache-Control":"max-age=86400"},"glob":"**/*.@(css|js)"}],"rewrites":[{"glob":"**","path":"/index.html"}]},"labels":{"deployment-tool":"cli-firebase"},"createTime":"2021-05-03T22:00:50.177042Z","createUser":{"email":"dale@jointest.com"},"finalizeTime":"2021-05-03T22:00:52.186730Z","finalizeUser":{"email":"dale@jointest.com"}}
✔ hosting[test_app-staging]: version finalized
i hosting[test_app-staging]: releasing new version...
[2021-05-03T22:00:52.241Z] [hosting] releasing to channel: test_channel
[2021-05-03T22:00:52.241Z] >>> HTTP REQUEST POST https://firebasehosting.googleapis.com/v1beta1/sites/test_app-staging/channels/test_channel/releases?version_name=sites/test_app-staging/versions/2dcc26f6107ee379
{"message":null}
[2021-05-03T22:00:52.469Z] <<< HTTP RESPONSE 200 {"content-type":"application/json; charset=UTF-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","date":"Mon, 03 May 2021 22:00:52 GMT","server":"ESF","cache-control":"private","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","alt-svc":"h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","transfer-encoding":"chunked"}
[2021-05-03T22:00:52.470Z] [hosting] release: {"name":"sites/test_app-staging/channels/test_channel/releases/1620079251894526","version":{"name":"sites/test_app-staging/versions/2dcc26f6107ee379","status":"FINALIZED","config":{"headers":[{"headers":{"Expires":"0","Cache-Control":"max-age=0, no-cache","Pragma":"no-cache"},"glob":"**/*.html"},{"headers":{"Cache-Control":"max-age=86400"},"glob":"**/*.@(jpg|jpeg|gif|png)"},{"headers":{"Cache-Control":"max-age=86400"},"glob":"**/*.@(css|js)"}],"rewrites":[{"glob":"**","path":"/index.html"}]},"labels":{"deployment-tool":"cli-firebase"},"createTime":"2021-05-03T22:00:50.177042Z","createUser":{"email":"dale@jointest.com"},"finalizeTime":"2021-05-03T22:00:52.186730Z","finalizeUser":{"email":"dale@jointest.com"},"preview":{}},"type":"DEPLOY","releaseTime":"2021-05-03T22:00:51.894526868Z","releaseUser":{"email":"dale@jointest.com"}}
✔ hosting[test_app-staging]: release complete
✔ Deploy complete!
Project Console: https://console.firebase.google.com/project/test-data-staging/overview
Hosting URL: https://test_app-staging.web.app
✔ hosting:channel: Channel URL (test_app-staging): https://test_app-staging--test_channel-j1gr1wcn.web.app [expires 2021-05-10 18:00:49]