diff --git a/vite.config.ts b/vite.config.ts index 439021f..be821f7 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -14,13 +14,14 @@ export default defineConfig(async ({ mode }) => { } catch (e) { } } if (!hash) hash = ''; + console.log('commit hash', hash); return { define: { __VERSION__: JSON.stringify(pkg.version), __COMMIT_HASH__: JSON.stringify(hash), 'process.env.NODE_ENV': JSON.stringify(mode), - 'process.env.PUBLIC_URL': JSON.stringify('./'), + 'process.env.PUBLIC_URL': JSON.stringify(''), }, base: './', resolve: {