From 9754be119de54a5335355f614b2ad4f916570e78 Mon Sep 17 00:00:00 2001 From: Elias Crum Date: Thu, 16 May 2024 14:20:10 +0200 Subject: [PATCH] hope this works --- package.json | 3 ++- vue.config.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e1e7516..cfc106b 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "serve": "vue-cli-service serve", "build": "vue-cli-service build", "lint": "vue-cli-service lint", - "deploy": "sh deploy.sh" + "deploy": "gh-pages -d dist" }, "dependencies": { "@comunica/query-sparql": "^3.0.1", @@ -36,6 +36,7 @@ "eslint-config-prettier": "^8.3.0", "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-vue": "^8.0.3", + "gh-pages": "^3.2.3", "prettier": "^2.4.1", "typescript": "~4.5.5" } diff --git a/vue.config.js b/vue.config.js index d953f36..342369a 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,7 +1,7 @@ const { defineConfig } = require('@vue/cli-service') module.exports = defineConfig({ transpileDependencies: true, - publicPath: '', + publicPath: process.env.NODE_ENV === 'production' ? '/repository-name/' : '/' });