@rendela/vite 0.0.8 → 0.0.9

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.
package/dist/config.js CHANGED
@@ -15,7 +15,7 @@ export default {
15
15
  pageTimeout: 5000, // timeout for the page to load in ms
16
16
  debug: true, // enable debug mode
17
17
  autoStartOnBuild: true, // auto start the server on build
18
- concurrencyLimit: 3, // number of concurrent pages to render
18
+ concurrencyLimit: 1, // number of concurrent pages to render
19
19
  chromiumExecutablePath: undefined, // path to the chromium executable (if not provided, the crawler will install it)
20
20
  };
21
21
  `;
@@ -40,7 +40,7 @@ export async function getConfig() {
40
40
  debug: loadedConfig?.debug ?? true,
41
41
  autoStartOnBuild: loadedConfig?.autoStartOnBuild ?? true,
42
42
  chromiumExecutablePath: loadedConfig?.chromiumExecutablePath ?? undefined,
43
- concurrencyLimit: loadedConfig?.concurrencyLimit ?? 3,
43
+ concurrencyLimit: loadedConfig?.concurrencyLimit ?? 1,
44
44
  };
45
45
  }
46
46
  //# sourceMappingURL=config.js.map
package/dist/crawler.js CHANGED
@@ -16,7 +16,7 @@ export async function startCrawler(config) {
16
16
  if (config.debug) {
17
17
  LogUtils.log(`✓ ${config.pages.length ?? 0} pages to crawl in ${LogUtils.startPrintingGray()}${projectSavePath}${LogUtils.endPrintingGray()}`);
18
18
  }
19
- const concurrencyLimit = config.concurrencyLimit || 3;
19
+ const concurrencyLimit = config.concurrencyLimit || 1;
20
20
  const pages = [...config.pages];
21
21
  while (pages.length > 0) {
22
22
  if (config.debug) {
@@ -1,6 +1,6 @@
1
1
  export declare const rootPath: string;
2
2
  export declare const configFilePath: string;
3
- export declare const defaultConfig = "// @ts-check\n/**\n * @type {import('rendela').RendelaConfigType}\n */\nexport default {\n pages: [{ url: \"/\" }, { url: \"/signin\" }, { url: \"/signup\" }], // list of pages to render ({url: string, filename?: string, timeout?: number})\n buildDir: \"dist\", // application build directory\n port: 3300, // port to run the server on when rendering\n savePath: \"pages\", // path to save the rendered pages\n pageWaitTime: 10, // timeout for the page to load in ms\n pageTimeout: 5000, // timeout for the page to load in ms\n debug: true, // enable debug mode\n autoStartOnBuild: true, // auto start the server on build\n concurrencyLimit: 3, // number of concurrent pages to render\n chromiumExecutablePath: undefined, // path to the chromium executable (if not provided, the crawler will install it)\n};\n";
3
+ export declare const defaultConfig = "// @ts-check\n/**\n * @type {import('rendela').RendelaConfigType}\n */\nexport default {\n pages: [{ url: \"/\" }, { url: \"/signin\" }, { url: \"/signup\" }], // list of pages to render ({url: string, filename?: string, timeout?: number})\n buildDir: \"dist\", // application build directory\n port: 3300, // port to run the server on when rendering\n savePath: \"pages\", // path to save the rendered pages\n pageWaitTime: 10, // timeout for the page to load in ms\n pageTimeout: 5000, // timeout for the page to load in ms\n debug: true, // enable debug mode\n autoStartOnBuild: true, // auto start the server on build\n concurrencyLimit: 1, // number of concurrent pages to render\n chromiumExecutablePath: undefined, // path to the chromium executable (if not provided, the crawler will install it)\n};\n";
4
4
  export declare function createDefaultConfigFile(): "Config file not found, creating default config" | null;
5
5
  export declare function getConfig(): Promise<RendelaConfigType>;
6
6
  export interface RendelaConfigType {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rendela/vite",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "A tool for pre-rendering pages of your SPA to improve SEO and performance",
5
5
  "author": "llopary",
6
6
  "license": "MIT",