quidproquo-webserver 0.0.81 → 0.0.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -18,6 +18,7 @@ export interface QPQConfigAdvancedWebEntrySettings extends QPQConfigAdvancedSett
|
|
|
18
18
|
domain?: WebDomainOptions;
|
|
19
19
|
indexRoot?: string;
|
|
20
20
|
ignoreCache?: string[];
|
|
21
|
+
compressFiles?: boolean;
|
|
21
22
|
}
|
|
22
23
|
export interface WebEntryQPQWebServerConfigSetting extends QPQConfigSetting {
|
|
23
24
|
name: string;
|
|
@@ -28,5 +29,6 @@ export interface WebEntryQPQWebServerConfigSetting extends QPQConfigSetting {
|
|
|
28
29
|
buildPath?: string;
|
|
29
30
|
seoBuildPath?: string;
|
|
30
31
|
ignoreCache: string[];
|
|
32
|
+
compressFiles: boolean;
|
|
31
33
|
}
|
|
32
34
|
export declare const defineWebEntry: (name: string, options?: QPQConfigAdvancedWebEntrySettings) => WebEntryQPQWebServerConfigSetting;
|
|
@@ -2,24 +2,29 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defineWebEntry = void 0;
|
|
4
4
|
const QPQConfig_1 = require("../QPQConfig");
|
|
5
|
-
const defineWebEntry = (name, options) =>
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
5
|
+
const defineWebEntry = (name, options) => {
|
|
6
|
+
var _a, _b, _c;
|
|
7
|
+
return ({
|
|
8
|
+
configSettingType: QPQConfig_1.QPQWebServerConfigSettingType.WebEntry,
|
|
9
|
+
uniqueKey: name,
|
|
10
|
+
name,
|
|
11
|
+
indexRoot: (options === null || options === void 0 ? void 0 : options.indexRoot) || 'index.html',
|
|
12
|
+
storageDrive: (options === null || options === void 0 ? void 0 : options.storageDrive) || {
|
|
13
|
+
autoUpload: true,
|
|
14
|
+
},
|
|
15
|
+
domain: (options === null || options === void 0 ? void 0 : options.domain) || {
|
|
16
|
+
onRootDomain: true,
|
|
17
|
+
},
|
|
18
|
+
cache: (options === null || options === void 0 ? void 0 : options.cache) || {
|
|
19
|
+
defaultTTLInSeconds: 7 * 24 * 60 * 60,
|
|
20
|
+
minTTLInSeconds: 3 * 24 * 60 * 60,
|
|
21
|
+
maxTTLInSeconds: 2 * 7 * 24 * 60 * 60,
|
|
22
|
+
mustRevalidate: (_b = (_a = options === null || options === void 0 ? void 0 : options.cache) === null || _a === void 0 ? void 0 : _a.mustRevalidate) !== null && _b !== void 0 ? _b : false,
|
|
23
|
+
},
|
|
24
|
+
buildPath: options === null || options === void 0 ? void 0 : options.buildPath,
|
|
25
|
+
seoBuildPath: options === null || options === void 0 ? void 0 : options.seoBuildPath,
|
|
26
|
+
ignoreCache: (options === null || options === void 0 ? void 0 : options.ignoreCache) || [],
|
|
27
|
+
compressFiles: (_c = options === null || options === void 0 ? void 0 : options.compressFiles) !== null && _c !== void 0 ? _c : true,
|
|
28
|
+
});
|
|
29
|
+
};
|
|
25
30
|
exports.defineWebEntry = defineWebEntry;
|