fix(all): Minor changes in PROD.

This commit is contained in:
Rodrigo Rodriguez 2023-07-09 20:00:05 -03:00
parent 45f7aed5f6
commit 77d5b4ee68

View file

@ -335,6 +335,9 @@ export class GBSSR {
if (GBServer.globals.wwwroot && url === '/'){
path = GBServer.globals.wwwroot + "/index.html"; // TODO.
}
if (!min) {
path = Path.join(GBServer.globals.wwwroot, url);
}
if (Fs.existsSync(path)) {
if (min) {
let html = Fs.readFileSync(path, 'utf8');