关于 Firebase 关于静态页面和动态页面的一些混淆

Some confusion about Firebase regarding static vs dynamic pages

所以根据我读过的文档,用 html 代码编写的包含脚本 src="some_JavaScript_file.js is always a dynamic page even though the embedded JavaScript only has const sum=3+5 because no matter how simple it is, as long as there's even a tiny amount of backend involved, that webpage is definitely a dynamic webpage. so with that premise(please confirm that the premise I wrote is actually correct), my question is how does it make sense that Firebase claims it runs index.html sitting in Public folder ONLY when it's running a static webpage even though if that index.html file includes script src="some_JavaScript_file.js 的网页是动态网页?

Firebase 托管不会以任何方式解释您在其上托管的内容。因此,如果您的任何文件中有 JavaScript,Firebase 不会在其服务器上执行该 JavaScript 代码。对于任何其他代码也是如此:Firebase 会将代码作为文本(或您存储它的任何其他格式)提供给请求它的客户端。

如果您的页面包含您希望在客户端浏览器中 运行 的 JavaScript,那正是您想要的。因此,您可以在 Firebase 托管上提供包含 client-side JavaScript 的网站。

如果您有任何想要 运行 server-side 的代码,则必须超越 Firebase 托管。现在,通过将 Firebase 托管与 Cloud Functions or Cloud Run.

集成,您可以留在 Google 的基础架构中