355345
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-06-24 23:30:45 +08:00
parent 44f5081623
commit 7c443c6ea2
3 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ steps:
from_secret: cos_secret_key from_secret: cos_secret_key
bucket_url: https://files-1302416092.cos.ap-shanghai.myqcloud.com bucket_url: https://files-1302416092.cos.ap-shanghai.myqcloud.com
source: dist source: dist
target: / target: /test
strip_prefix: dist strip_prefix: dist
# 第三步:部署到服务器 # 第三步:部署到服务器

View File

@ -1 +1 @@
VITE_PUBLIC = https://cdn.files.zguiy.com/static/ VITE_PUBLIC = https://cdn.files.zguiy.com/

View File

@ -6,7 +6,7 @@ export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd()); const env = loadEnv(mode, process.cwd());
return { return {
base: './', //打包后的相对路径 base: env.VITE_PUBLIC || './', //使用环境变量设置资源路径,默认为相对路径
server: { server: {
host: true, host: true,