feat: publish sanitized custom.97 source
This commit is contained in:
1022 files changed
+69903
-19207
No files matched your search
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user