File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,10 +46,12 @@ export function llamaCppBuildPlugin(): Plugin {
4646
4747 content = content . replace ( / \r / g, '' ) ;
4848 content = GUIDE_FOR_FRONTEND + '\n' + content ;
49- content = content . replace ( / \/ _ a p p \/ i m m u t a b l e \/ b u n d l e \. [ ^ " ] + \. j s / g, './bundle.js' ) ;
49+
50+ // Keep the Vite hash as a query string so each build busts the browser cache
51+ content = content . replace ( / \/ _ a p p \/ i m m u t a b l e \/ b u n d l e \. ( [ ^ " . ] + ) \. j s / g, './bundle.js?$1' ) ;
5052 content = content . replace (
51- / \/ _ a p p \/ i m m u t a b l e \/ a s s e t s \/ b u n d l e \. [ ^ " ] + \. c s s / g,
52- './bundle.css'
53+ / \/ _ a p p \/ i m m u t a b l e \/ a s s e t s \/ b u n d l e \. ( [ ^ " . ] + ) \. c s s / g,
54+ './bundle.css?$1 '
5355 ) ;
5456 content = content . replace ( / _ _ s v e l t e k i t _ [ a - z 0 - 9 ] + / g, '__sveltekit__' ) ;
5557
Original file line number Diff line number Diff line change 254254 />
255255
256256 <Sidebar .Provider bind:open ={sidebarOpen }>
257- <div class =" flex h-screen w-full" >
257+ <div class =" flex h-dvh w-full" >
258258 <Sidebar .Root variant =" floating" class =" h-full"
259259 ><SidebarNavigation bind:this ={chatSidebar } /></Sidebar .Root
260260 >
You can’t perform that action at this time.
0 commit comments