@finesoft/front 0.1.22 → 0.1.24

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/index.cjs CHANGED
@@ -2304,7 +2304,7 @@ function vercelAdapter() {
2304
2304
  try {
2305
2305
  const funcDir = path.resolve(
2306
2306
  root,
2307
- ".vercel/output/functions/ssr.func"
2307
+ ".vercel/output/functions/[[...path]].func"
2308
2308
  );
2309
2309
  await buildBundle(ctx, {
2310
2310
  entry: ".vercel-entry.tmp.mjs",
@@ -2334,7 +2334,7 @@ function vercelAdapter() {
2334
2334
  version: 3,
2335
2335
  routes: [
2336
2336
  { handle: "filesystem" },
2337
- { src: "/(.*)", dest: "/ssr/$1" }
2337
+ { src: "/(.*)", dest: "/$1" }
2338
2338
  ]
2339
2339
  },
2340
2340
  null,
@@ -2365,16 +2365,6 @@ function vercelAdapter() {
2365
2365
  contentType: "text/html; charset=utf-8"
2366
2366
  };
2367
2367
  }
2368
- const isrRoutes = prerendered.map(({ url }) => ({
2369
- src: `^${url.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}/?$`,
2370
- dest: url,
2371
- has: [{ type: "header", key: "x-vercel-isr" }]
2372
- }));
2373
- config.routes = [
2374
- ...isrRoutes,
2375
- { handle: "filesystem" },
2376
- { src: "/(.*)", dest: "/ssr/$1" }
2377
- ];
2378
2368
  fs.writeFileSync(configPath, JSON.stringify(config, null, 2));
2379
2369
  }
2380
2370
  console.log(" Vercel output \u2192 .vercel/output/\n");