Commit ca7dd25c authored by 谢荣超's avatar 谢荣超

chore: 更新案例图片目录名称及路径引用

将案例图片源文件目录从 public/case 重命名为 case-source,并更新相关脚本中的路径引用,以更清晰地表明该目录用途并避免与公共资源混淆。
parent 9635dd6b
...@@ -24,6 +24,6 @@ dist-ssr ...@@ -24,6 +24,6 @@ dist-ssr
*.sw? *.sw?
.vercel .vercel
# Case images (hosted on OSS, uploaded via npm run upload) # Case source images (hosted on OSS, uploaded via npm run upload)
public/case/ case-source/
dist.zip dist.zip
...@@ -3,7 +3,7 @@ import { join, basename } from 'path' ...@@ -3,7 +3,7 @@ import { join, basename } from 'path'
import { fileURLToPath } from 'url' import { fileURLToPath } from 'url'
const __dirname = fileURLToPath(new URL('.', import.meta.url)) const __dirname = fileURLToPath(new URL('.', import.meta.url))
const CASE_DIR = join(__dirname, '../public/case') const CASE_DIR = join(__dirname, '../case-source')
const OUTPUT = join(__dirname, '../src/data/cases.ts') const OUTPUT = join(__dirname, '../src/data/cases.ts')
const IMAGE_EXTENSIONS = ['.jpg', '.jpeg', '.png', '.webp'] const IMAGE_EXTENSIONS = ['.jpg', '.jpeg', '.png', '.webp']
......
...@@ -6,7 +6,7 @@ import { createHash } from 'crypto' ...@@ -6,7 +6,7 @@ import { createHash } from 'crypto'
const __dirname = fileURLToPath(new URL('.', import.meta.url)) const __dirname = fileURLToPath(new URL('.', import.meta.url))
const PROJECT_ROOT = join(__dirname, '..') const PROJECT_ROOT = join(__dirname, '..')
const CASE_DIR = join(PROJECT_ROOT, 'public/case') const CASE_DIR = join(PROJECT_ROOT, 'case-source')
const OUTPUT = join(PROJECT_ROOT, 'src/data/cases.ts') const OUTPUT = join(PROJECT_ROOT, 'src/data/cases.ts')
// OSS 配置 // OSS 配置
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment