'Accessing assets folder in angular when deployed to Wildfly
So the main problem is when I deployed Angular app to wildfly, it tries to use assets-folder straight from the host, not from the host/pdv/assets.
Failed to load resource: the server responded with a status of 404 (Not Found) http://127.0.0.1:8080/assets/i18n/fi.json:1
I have a context-root: /pdv and --base-href=./ so the application is depolyed to wildfly in: http://127.0.0.1:8080/pdv
In angular.json: "assets": [ "src/favicon.ico", "src/assets",
Any idea how to fix this?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|