Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
fix(vite): pass relative url as default base (#6637)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Aug 15, 2022
1 parent 8a28c43 commit 385fa60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vite/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export async function buildClient (ctx: ViteBuildContext) {

const clientConfig: vite.InlineConfig = vite.mergeConfig(ctx.config, {
entry: ctx.entry,
base: './',
experimental: {
renderBuiltUrl: (filename, { type, hostType }) => {
if (hostType !== 'js' || type === 'asset') {
Expand Down

0 comments on commit 385fa60

Please sign in to comment.