Open WeyIin opened 1 year ago
Hey @WeyIin Thanks for the detailed example. I will check this out and get back to you.
Hi @eidellev , thanks for your response!
I've configured CSR instead of SSR and it works fine, so something about SSR is going on and I still haven't figured it out..
Hi guys 👋
This might just be a question and not really an issue.
I am new to InertiaJS and Vue.
I've configured adonis webpack and ssr webpack as described on docs. Both webpacks, ssr and standard adonis one watch for changes and compile as necessary with following commands:
node ace ssr:watch
andnode ace serve --watch
respectively.Now, changing .edge files the hot reload works fine and is displayed correctly, however the ssr one (when modifying Vue files) is not although webpack compiles fine.
For changes to take effect I need to restart adonisjs app and re-start it with the above command, and I feel like I am doing something wrong since watch function should do that out of the box?
The only thing that is not as default is ssr build which is set to /build/inertia/ssr instead.
Is this how it supposed to be? Restart the server on vue changes?
Thanks in advance!
Here are my webpack configs:
webpack.ssr.config:
webpack.config: