refactor: 视频接口改用 R2 直连,移除 openlist 依赖

This commit is contained in:
wfz
2026-04-30 10:18:42 +08:00
parent e8e8d65545
commit b36b24449b
4 changed files with 7 additions and 17 deletions

View File

@@ -8,7 +8,7 @@ export default defineConfig({
server: {
proxy: {
'/api': {
target: 'https://openlist.wufangzhen.com',
target: 'https://wufangzhen.com',
changeOrigin: true,
secure: false
}

View File

@@ -25,20 +25,6 @@
}
]
},
{
"title": "some",
"path": "/some/",
"items": [
{
"text": "概述",
"link": "/some/"
},
{
"text": "some",
"link": "/some/some"
}
]
},
{
"title": "vue",
"path": "/vue/",
@@ -72,6 +58,10 @@
{
"text": "概述",
"link": "/杂谈/"
},
{
"text": "程序员的日常思考",
"link": "/杂谈/thoughts"
}
]
}

View File

@@ -1,5 +1,5 @@
export function getVideoUrl(name: string): string {
return `https://openlist.wufangzhen.com/d/139/wufangzhen.com/mp4/${name}`
return `https://pub-7d4a6640bc77480c99842eea19bb2b69.r2.dev/${name}`
}
export function clamp(value: number, min: number, max: number): number {

2
package-lock.json generated
View File

@@ -1,5 +1,5 @@
{
"name": "home",
"name": "web-home",
"lockfileVersion": 3,
"requires": true,
"packages": {