Koj*_*jay 16 firebase next.js github-actions
当我尝试使用 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
Run Code Online (Sandbox Code Playgroud)
我试过
firebase experiments:enable webframeworks
Run Code Online (Sandbox Code Playgroud)
从我的电脑上,但它仍然无法正常工作。
以下是 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
Run Code Online (Sandbox Code Playgroud)
您能帮我通过 GitHub 操作启用 Web 框架吗?
谢谢!
The*_*per 40
您可以通过更新 yaml 来启用 webframeworks,如下所示:
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
# ...
env:
FIREBASE_CLI_EXPERIMENTS: webframeworks
Run Code Online (Sandbox Code Playgroud)
实现该功能的拉取请求是:firebase-tools#5069
此功能在 v11.14.2 版本中引入。
| 归档时间: |
|
| 查看次数: |
6138 次 |
| 最近记录: |