chore: update package.json and add edgeone.json

Update package.json script and dependencies, add edgeone.json configuration file.
This commit is contained in:
wood chen 2024-12-14 14:54:07 +08:00
parent 7642357e44
commit 8d26015110
2 changed files with 19 additions and 1 deletions

18
edgeone.json Normal file
View File

@ -0,0 +1,18 @@
{
"name": "md-wechat",
"buildCommand": "npm run build:h5-netlify",
"installCommand": "npm i",
"outputDirectory": "dist",
"nodeVersion": "22.11.0",
"headers": [
{
"source": "/*",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=0"
}
]
}
]
}

View File

@ -15,7 +15,7 @@
"lint": "eslint . --fix", "lint": "eslint . --fix",
"type-check": "vue-tsc --build --force", "type-check": "vue-tsc --build --force",
"postinstall": "simple-git-hooks" "postinstall": "simple-git-hooks"
}, },
"dependencies": { "dependencies": {
"@element-plus/icons-vue": "^2.3.1", "@element-plus/icons-vue": "^2.3.1",
"@vueuse/core": "^11.1.0", "@vueuse/core": "^11.1.0",