fix(GBSSR): update packagePath logic to handle non-static URLs correctly
Some checks failed
GBCI / build (push) Failing after 8m30s

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2025-06-27 13:31:32 -03:00
parent f245de43b2
commit 3afdbb1ddb

View file

@ -336,6 +336,9 @@ export class GBSSR {
if (GBServer.globals.wwwroot && url === '/') {
packagePath = GBServer.globals.wwwroot + "/index.html"; // TODO.
}
if (!min && !url.startsWith("/images") && GBServer.globals.wwwroot) {
packagePath = path.join(GBServer.globals.wwwroot, url);
}
if (!min && !url.startsWith("/static") && GBServer.globals.wwwroot) {
packagePath = path.join(GBServer.globals.wwwroot, url);
}