Skip to content

Commit

Permalink
[INF-542] Fix vite_public_url (#6630)
Browse files Browse the repository at this point in the history
  • Loading branch information
sliptype authored Nov 9, 2023
1 parent a09fb82 commit 35f87fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/web/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), 'VITE_')
const port = parseInt(env.VITE_PORT ?? '3000')
const analyze = env.VITE_BUNDLE_ANALYZE === 'true'
env.VITE_PUBLIC_URL = env.VITE_PUBLIC_URL ?? ''

return {
base: env.VITE_PUBLIC_URL ?? '/',
base: env.VITE_PUBLIC_URL,
build: {
outDir: 'build',
sourcemap: true,
Expand Down

0 comments on commit 35f87fa

Please sign in to comment.