F
Filamentβ€’15mo ago
z3phir

how to change manifest.json location ?

hi i have changed my vite config to this publicDirectory: 'public_html', buildDirectory: '/backendAssets', and now the manifest.json is build where i want (\public_html\backendAssets\manifest.json) but i get a error message Vite manifest not found at: \public_html\build/manifest.json how can i set the new path in filament ? thanks in advance for any response
Solution:
You can adjust it via Vite::useBuildDirectory()
Jump to solution
3 Replies
wyChoong
wyChoongβ€’15mo ago
npm run build? This is vite issue in your setup, not filament
Solution
Dennis Koch
Dennis Kochβ€’15mo ago
You can adjust it via Vite::useBuildDirectory()
z3phir
z3phirOPβ€’15mo ago
@wyChoong like i said the build process is ok and the assets are built at the directory i want. @Dennis Koch sorry but i'm new to vite where i should add the Vite::useBuildDirectory ? thank you both for responding πŸ™‚ i used
->renderHook('panels::head.start',
fn(): string => Vite::useBuildDirectory('backendAssets')->toHtml())
->renderHook('panels::head.start',
fn(): string => Vite::useBuildDirectory('backendAssets')->toHtml())
and now it works πŸ™‚
Want results from more Discord servers?
Add your server