Inertia load multiple ssr files #1589
ObjectAssign
started this conversation in
Show and tell
Replies: 2 comments 1 reply
-
The SSR bundle isn't served to the client, it runs on your server, so it doesn't really matter if that's built using dynamic imports. That said, Inertia looks for a default bundle, if you change that (you're naming the output |
Beta Was this translation helpful? Give feedback.
1 reply
-
check this repo https://github.com/abdessamadbettal/laravel-starter Readme has all instructions how to install it and how to use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Okay, so my old SSR is working perfectly fine.
The problem is that it renders 1 big SSR bundle.
vite.config.js (old)
Bundled file:
So I'm trying to make it bundle smaller SSR files which work great:
vite.config.js
Bundled file:
Thats so neat! I really like that.. however when i run:
sail artisan inertia:start-ssr
I then get this error:
Inertia SSR bundle not found. Set the correct Inertia SSR bundle path in your
inertia.ssr.bundleconfig.
Im so hyped, this is actually amazing and will improve the overall performance and hopefully eliminate some "Reduce unused JavaScript" in Google Search Console..
However i cant run the SSR command, is there some smart person out there who know how i can make this work?
Beta Was this translation helpful? Give feedback.
All reactions