Firebase CLI 未检测到托管 init 上的 NextJS 框架

Mar*_*rco 0 firebase firebase-hosting next.js

我想跑firebase init hosting在 NextJS 存储库的根文件夹上运行,但它似乎没有检测到框架并继续询问我构建目录。

firebase 版本 11.15.0 节点版本 v16.13.2 下一个版本 ^12.2.2

知道这是一个错误还是我可能遗漏了一些东西吗?

我在这里检查 firebase CLI https://github.com/firebase/firebase-tools/blob/200ee7e8d7d62e6ff1c05e96cb120aabff02c237/src/frameworks/next/index.ts#L54但找不到任何有用的东西。

pag*_*gep 6

您需要firebase experiments:enable webframeworks先运行命令。

文档中缺少它,报告的问题 https://github.com/firebase/firebase-tools/issues/5152