Skip to content

Commit

Permalink
Fix wrong generated web endpoint path on Windows
Browse files Browse the repository at this point in the history
The web endpoint path was created from file path which is differ on Windows.
This caused enpoint path be like `/app\index-styles.js`
  • Loading branch information
jedla97 authored and gsmet committed Nov 20, 2024
1 parent 021a05e commit f9dbe64
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public void findRelevantFiles(BuildProducer<GeneratedStaticResourceBuildItem> ge
webstream.forEach(path -> {
if (Files.isRegularFile(path)) {
String endpoint = SLASH + web.relativize(path);
endpoint = endpoint.replace('\\', '/');
try {
if (path.toString().endsWith(DOT_HTML)) {
generatedStaticProducer.produce(new GeneratedStaticResourceBuildItem(endpoint,
Expand Down

0 comments on commit f9dbe64

Please sign in to comment.