Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

Repro for issue 9235

Versions

firebase-tools: v14.17.0

  • master branch - commit e535d19f538b95e1720a00d6ce628c2e0c0b6469

Steps to reproduce

  1. Run firebase deploy --only hosting --project PROJECT_ID
$ firebase deploy --only hosting --project PROJECT_ID
=== Deploying to 'PROJECT_ID'...

i  deploying hosting
i  hosting[aalej-production]: beginning deploy...
i  hosting[aalej-production]: found 1 files in site/example-api
✔  hosting[aalej-production]: file upload complete
i  hosting[aalej-staging]: beginning deploy...
i  hosting[aalej-staging]: found 1 files in site/example-dynamic
✔  hosting[aalej-staging]: file upload complete
i  hosting[aalej-testing]: beginning deploy...
i  hosting[aalej-testing]: found 1 files in site/example-static
✔  hosting[aalej-testing]: file upload complete
i  hosting[aalej-production]: finalizing version...
i  hosting[aalej-staging]: finalizing version...
i  hosting[aalej-testing]: finalizing version...
⚠  hosting[aalej-staging]: Unable to find a valid endpoint for function `hostExampleDynamicSite`, but still including it in the config
✔  hosting[aalej-staging]: version finalized
i  hosting[aalej-staging]: releasing new version...
✔  hosting[aalej-testing]: version finalized
i  hosting[aalej-testing]: releasing new version...
✔  hosting[aalej-staging]: release complete
✔  hosting[aalej-testing]: release complete
✔  hosting[aalej-production]: version finalized
i  hosting[aalej-production]: releasing new version...
✔  hosting[aalej-production]: release complete

✔  Deploy complete!

Project Console: https://console.firebase.google.com/project/PROJECT_ID/overview
Hosting URL: https://aalej-production.web.app
Hosting URL: https://aalej-staging.web.app
Hosting URL: https://aalej-testing.web.app

Verification - error on executing hostExampleDynamicSite

  1. Run curl https://aalej-production.web.app/v1/submenu
Hello from runApiV1!
  1. Run curl https://aalej-staging.web.app/submenu. Note: the function region is set to asia-east1. This is unexpected
<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>404 Page not found</title>
</head>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: Page not found</h1>
<h2>The requested URL was not found on this server.</h2>
<h2></h2>
</body></html>
  1. Run curl https://aalej-testing.web.app
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    Example static
</body>

Notes

Applying the changes from firebase/firebase-tools#9214 seems to resolve the issue

  1. Running firebase deploy --only hosting --project PROJECT_ID
=== Deploying to 'PROJECT_ID'...

i  deploying hosting
i  hosting[aalej-production]: beginning deploy...
i  hosting[aalej-production]: found 1 files in site/example-api
✔  hosting[aalej-production]: file upload complete
i  hosting[aalej-staging]: beginning deploy...
i  hosting[aalej-staging]: found 1 files in site/example-dynamic
✔  hosting[aalej-staging]: file upload complete
i  hosting[aalej-testing]: beginning deploy...
i  hosting[aalej-testing]: found 1 files in site/example-static
✔  hosting[aalej-testing]: file upload complete
i  hosting[aalej-production]: finalizing version...
✔  hosting[aalej-production]: version finalized
i  hosting[aalej-production]: releasing new version...
✔  hosting[aalej-production]: release complete
i  hosting[aalej-staging]: finalizing version...
✔  hosting[aalej-staging]: version finalized
i  hosting[aalej-staging]: releasing new version...
✔  hosting[aalej-staging]: release complete
i  hosting[aalej-testing]: finalizing version...
✔  hosting[aalej-testing]: version finalized
i  hosting[aalej-testing]: releasing new version...
✔  hosting[aalej-testing]: release complete

✔  Deploy complete!

Project Console: https://console.firebase.google.com/project/PROJECT_ID/overview
Hosting URL: https://aalej-production.web.app
Hosting URL: https://aalej-staging.web.app
Hosting URL: https://aalej-testing.web.app

Verification - all expected behavior

  1. Run curl https://aalej-production.web.app/v1/submenu
Hello from runApiV1!
  1. Run curl https://aalej-staging.web.app/submenu
Hello from hostExampleDynamicSite!
  1. Run curl https://aalej-testing.web.app
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    Example static
</body>

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages