You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vite 5 now fails because by default appType: 'spa' does not return 404's if something isn't found and returns 200 and sends to index HTML bypassing the SPARouting.
Run mvn quarkus:dev and then go to DevUI Swagger and just try and hit the "/hello" REST service you will see it returns the HTML of the Vite webapp with a 200 OK.
Now go into vite.config.ts and change appType: "spa" to appType: "mpa" and repeat above the RestEasy /hello API works fine again as does the webapp.
melloware
added a commit
to melloware/quarkus-quinoa
that referenced
this issue
Dec 7, 2023
Vite 5 now fails because by default
appType: 'spa'
does not return 404's if something isn't found and returns 200 and sends to index HTML bypassing the SPARouting.https://vitejs.dev/config/shared-options#apptype
To fix it we need to tell vite this is a MultiPageApplication using
appType: 'mpa'
to make it work like Vite 4 with Quinoa.The text was updated successfully, but these errors were encountered: