当我尝试使用GitHub操作在firebase上部署nextjs项目时,我收到了一条错误消息。
  Error: Cannot deploy a web framework to hosting because the experiment webframeworks is not enabled. To enable webframeworks run firebase experiments:enable webframeworks我试过了
firebase experiments:enable webframeworks从我的电脑,但它仍然没有工作。
下面是用于GitHub操作的yaml文件。
name: Deploy to Firebase Hosting on merge
'on':
  push:
    branches:
      - main
jobs:
  build_and_deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - run: npm ci && npm run build
      - uses: FirebaseExtended/action-hosting-deploy@v0
        with:
          repoToken: '${{ secrets.GITHUB_TOKEN }}'
          firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT }}'
          channelId: live
          projectId: my-project你能帮我启用GitHub操作的with框架吗?
谢谢!
发布于 2022-11-18 20:22:08
您可以通过如下方式更新yaml来启用the框架:
  - uses: FirebaseExtended/action-hosting-deploy@v0
     with:
       # ...
     env:
       FIREBASE_CLI_EXPERIMENTS: webframeworks实现该功能的拉请求是:消防基地-工具#5069
这一特性是在v11.14.2版本中引入的。
https://stackoverflow.com/questions/74426925
复制相似问题