mirror of
https://github.com/ryanwtf7/hianime-api.git
synced 2026-04-17 13:31:44 +00:00
fix: rename ghcr package to hianime-v2 and implement vercel bubbling
This commit is contained in:
2
.github/workflows/package.yml
vendored
2
.github/workflows/package.yml
vendored
@@ -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}}
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"rewrites": [
|
"rewrites": [
|
||||||
{
|
{
|
||||||
"source": "/(.*)",
|
"source": "/(.*)",
|
||||||
"destination": "/api"
|
"destination": "/api/index.js"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user