Replies: 1 comment 11 replies
-
i am not sure i would try and combine these two things or you should serve your quinoa app at a different location. I am actually surprised it works in Dev Mode |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a Jakarta Faces app within
src/main/resources
:and a Quinoa web app (based on Vite) within
src/main/webui
.The
vite.config.ts
:and the scripts in
package.json
:In dev-mode, it works well:
localhost:8080/index.xthml
(note the suffixxhtml
) will serve the jakarta faces app.localhost:8080/index.html
(note the suffixhtml
) will serve the web app provided by quinoa.However, when building the Quarkus app (with
mvn clean package
), the web app provided by Quinoa is no longer available at the specified URL. If you go tolocalhost:8080/index.html
(orlocalhost:8080/index.xthml
), the Jakarta Faces app will be deployed. However, I want the same URL behavior as when running indev
-mode, i.e. going toindex.html
should serve the web app provided by Quinoa and going to toindex.xhtml
, the Jakarta Faces app should be served.My Quinoa settings in
application.properties
:The following assumption made in https://docs.quarkiverse.io/quarkus-quinoa/dev/index.html is also somewhat irritating to me:
This means that Quinoa's
webui
directory takes precedence over the contents ofMETA-INF/resources
, but in the case described above it seems thatMETA-INF/resources
takes precedence in prod mode. However, both are provided indev
-mode, which is what I want.I guess I need a custom configuration to make it also work in
prod
-mode, i.e. serve Quinoa web app when going tolocalhost:8080/index.html
, and serve Jakarta web app when going tolocalhost:8080/index.xhtml
.But what configuration do I have to do?
Beta Was this translation helpful? Give feedback.
All reactions