diff --git a/package.json b/package.json index 52f4db7..474b0e7 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "author": "doocs", "version": "1.4.2", "private": true, - "homepage": "https://doocs.gitee.io/md", + "homepage": ".", "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", diff --git a/vue.config.js b/vue.config.js index cc4c11d..50342be 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,4 +1,4 @@ module.exports = { outputDir: "dist", - publicPath: "/md/", + publicPath: process.env.NETLIFY ? '/' : '/md/' };