fix(GBSSR): update packagePath logic to handle non-static URLs correctly
Some checks failed
GBCI / build (push) Failing after 8m30s
Some checks failed
GBCI / build (push) Failing after 8m30s
This commit is contained in:
parent
f245de43b2
commit
3afdbb1ddb
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue