fix(all): Minor changes in PROD.
This commit is contained in:
parent
45f7aed5f6
commit
77d5b4ee68
1 changed files with 3 additions and 0 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Reference in a new issue