From 8a76004990cd11115af08552f069fd66d14f9785 Mon Sep 17 00:00:00 2001 From: Mukvin Date: Thu, 24 Nov 2022 14:08:58 +0800 Subject: [PATCH] Minor customize redirect static path --- kystudio/config/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kystudio/config/index.js b/kystudio/config/index.js index 7fc759633b2..bd385e20b9a 100644 --- a/kystudio/config/index.js +++ b/kystudio/config/index.js @@ -30,7 +30,7 @@ module.exports = { index: path.resolve(__dirname, '../dist/index.html'), assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', - assetsPublicPath: '/kylin/', + assetsPublicPath: process.env.npm_config_static || '/kylin/', productionSourceMap: false, // Gzip off by default as many popular static hosts such as // Surge or Netlify already gzip all static assets for you.