feat: publish sanitized custom.97 source

This commit is contained in:
cneicy committed 2026-10-27 20:43:39 +08:00
1 parent 8e6ed0317b
commit 86c0276156
1022 files changed
+69903 -19207

No files matched your search

+9
View File
@@ -14,6 +14,9 @@ export default defineConfig(({ envMode }) => {
process.env.VITE_REACT_APP_SERVER_URL ||
env.rawPublicVars.VITE_REACT_APP_SERVER_URL ||
'http://localhost:3000'
const siteFavicon =
process.env.VITE_REACT_APP_FAVICON ||
env.rawPublicVars.VITE_REACT_APP_FAVICON
const isProd = envMode === 'production'
const devProxy = Object.fromEntries(
@@ -53,6 +56,11 @@ export default defineConfig(({ envMode }) => {
},
},
source: {
define: {
'import.meta.env.VITE_REACT_APP_FAVICON': JSON.stringify(
siteFavicon || ''
),
},
entry: {
index: './src/main.tsx',
},
@@ -64,6 +72,7 @@ export default defineConfig(({ envMode }) => {
},
html: {
template: './index.html',
favicon: siteFavicon ? `./public${siteFavicon}` : './public/favicon.ico',
},
server: {
host: '0.0.0.0',