Skip to content

Commit

Permalink
Fix configured base in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecAivazis committed Oct 1, 2023
1 parent bf1aac1 commit d555950
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/rare-plums-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'houdini-react': patch
---

Fix base url in dev mod
2 changes: 1 addition & 1 deletion packages/houdini-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@
},
"main": "./build/plugin-cjs/index.js",
"types": "./build/plugin/index.d.ts"
}
}
2 changes: 1 addition & 1 deletion packages/houdini-react/src/plugin/vite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default {
}
// build up the list of entries that we need vite to bundle
if (!isSecondaryBuild() || process.env.HOUDINI_SECONDARY_BUILD === 'ssr') {
if (!devServer) {
if (env.command === 'build') {
conf.base = '/assets'
}

Expand Down

0 comments on commit d555950

Please sign in to comment.