Closed ssfun closed 5 months ago
使用文档中的命令行部署方式,不能在vercel上面直接点击部署
用的 GitHub actions ,应该也算是命令行吧?
name: Deploy Kimi to Vercel
on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install Vercel CLI
run: npm i -g vercel --registry http://registry.npmmirror.com
- name: Clone repository
run: git clone https://github.com/LLM-Red-Team/kimi-free-api
- name: Change directory
run: cd kimi-free-api
- name: Deploy to Vercel
run: vercel --prod --token ${{ secrets.VERCEL_TOKEN }} --yes --name kimi-free-api
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
可以尝试在本地调用部署测试原因,我们测试是正常的
用的 GitHub actions ,应该也算是命令行吧?
name: Deploy Kimi to Vercel on: workflow_dispatch: jobs: deploy: runs-on: ubuntu-latest steps: - name: Setup Node.js uses: actions/setup-node@v2 with: node-version: '20' - name: Install Vercel CLI run: npm i -g vercel --registry http://registry.npmmirror.com - name: Clone repository run: git clone https://github.com/LLM-Red-Team/kimi-free-api - name: Change directory run: cd kimi-free-api - name: Deploy to Vercel run: vercel --prod --token ${{ secrets.VERCEL_TOKEN }} --yes --name kimi-free-api env: VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
你这个成功了吗,我本地部署到vercel也是404.
用的 GitHub actions ,应该也算是命令行吧?
name: Deploy Kimi to Vercel on: workflow_dispatch: jobs: deploy: runs-on: ubuntu-latest steps: - name: Setup Node.js uses: actions/setup-node@v2 with: node-version: '20' - name: Install Vercel CLI run: npm i -g vercel --registry http://registry.npmmirror.com - name: Clone repository run: git clone https://github.com/LLM-Red-Team/kimi-free-api - name: Change directory run: cd kimi-free-api - name: Deploy to Vercel run: vercel --prod --token ${{ secrets.VERCEL_TOKEN }} --yes --name kimi-free-api env: VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
你这个成功了吗,我本地部署到vercel也是404.
这个是失败的
本地部署需要先npm run build 再执行vercel --prod就可以了
页面报错 404: NOT_FOUND Code: NOT_FOUND ID: hkg1::dch6n-1715418987679-8f43eed8e825
post 请求报 The page could not be found