diff --git a/package.json b/package.json index e948692d5..c697b83f2 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "dev": "vite", "start": "vite", "build": "vite build --emptyOutDir && ./deploy_build.sh", - "ghpages": "vite build --outDir ../gh_pages && ./deploy_ghpages.sh", + "ghpages": "vite build --outDir ../gh_pages --base /omero-figure/ && ./deploy_ghpages.sh", "test": "echo \"Error: no test specified\" && exit 1", "watch": "watch 'npm run build' ./src" }, diff --git a/vite.config.js b/vite.config.js index 8c2d82d8c..bac8b9285 100755 --- a/vite.config.js +++ b/vite.config.js @@ -27,9 +27,6 @@ let config = { assetsInclude: ["**/*.template.html"], } -// this will be undefined when deployed from netlify, but is used by gh-pages -if (process.env.GITHUB_REPOSITORY_OWNER) { - config.base = "/omero-figure/"; -} +// NB: config.base is set to "/omero-figure/" in ghpages build (see package.json) export default defineConfig(config);