fix: rename ghcr package to hianime-v2 and implement vercel bubbling

This commit is contained in:
RY4N
2026-03-27 01:46:56 +06:00
parent c2675b73ee
commit c258fa1d41
3 changed files with 5 additions and 4 deletions

View File

@@ -34,7 +34,7 @@ jobs:
id: meta id: meta
uses: docker/metadata-action@v5 uses: docker/metadata-action@v5
with: with:
images: ghcr.io/${{ github.repository }} images: ghcr.io/${{ github.repository_owner }}/hianime-api
tags: | tags: |
type=semver,pattern={{version}} type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}}.{{minor}}

View File

@@ -1,6 +1,6 @@
{ {
"name": "hianime-api", "name": "hianime-api",
"version": "2.0.1", "version": "2.1.0",
"type": "module", "type": "module",
"repository": { "repository": {
"type": "git", "type": "git",
@@ -23,7 +23,8 @@
"test:ui": "vitest --ui", "test:ui": "vitest --ui",
"test:jest": "NODE_OPTIONS='--experimental-vm-modules' jest", "test:jest": "NODE_OPTIONS='--experimental-vm-modules' jest",
"test:all": "bun run test && bun run test:jest", "test:all": "bun run test && bun run test:jest",
"clean": "rm -rf dist node_modules/.cache" "clean": "rm -rf dist node_modules/.cache",
"vercel-build": "bun build api/index.ts --outfile api/index.js --target node"
}, },
"dependencies": { "dependencies": {
"@hono/node-server": "^1.8.2", "@hono/node-server": "^1.8.2",

View File

@@ -4,7 +4,7 @@
"rewrites": [ "rewrites": [
{ {
"source": "/(.*)", "source": "/(.*)",
"destination": "/api" "destination": "/api/index.js"
} }
] ]
} }