我目前正在尝试从应用程序目录部署到 Github Action CI/CD。 但是我一直报
PageNotFoundError: Cannot find module for page: /
错误,我认为我无法读取我的结构中的应用程序路径的现象正在发生。下面是 next.config.js 文件。有什么我想念的吗?
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
appDir: true,
},
};
module.exports = nextConfig;
我做错了什么吗?
name: git push into another repo to deploy to vercel
on:
push:
branches: master
jobs:
build:
runs-on: ubuntu-latest
container: pandoc/latex
steps:
- uses: actions/checkout@v2
- name: Install mustache (to update the date)
run: apk add ruby && gem install mustache
- name: creates output
run: sh ./build.sh
- name: Pushes to another repository
id: push_directory
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source-directory: 'output'
destination-github-username: [Seung-hwan285]
destination-repository-name: [Team-PODO-ODEEGO-FE
]
user-email: ${{ secrets.OFFICIAL_ACCOUNT_EMAIL }}
commit-message: ${{ github.event.commits[0].message }}
target-branch: main
- name: Test get variable exported by push-to-another-repository
run: echo $DESTINATION_CLONED_DIRECTORY