silverwolf-x's picture
download
raw
574 Bytes
import { ConfigPlugin, JssConfig } from "..";
/**
* This config will set fallback values for properties that were left empty
* If neither env, nor other places had a proper value, this will ensure a fallback is set
*/
class FallbackPlugin implements ConfigPlugin {
// should always come last
order = 100;
async exec(config: JssConfig) {
return Object.assign({}, config, {
defaultLanguage: config.defaultLanguage || "en",
sitecoreApiKey: config.sitecoreApiKey || "no-api-key-set",
});
}
}
export const fallbackPlugin = new FallbackPlugin();

Xet Storage Details

Size:
574 Bytes
·
Xet hash:
a5dce453eb22a9420fb75f85586dfaa7f78ca8f6673a4a2e3d4acf0b1bd84f9b

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.