@finesoft/front 0.1.22 → 0.1.23

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",
@@ -2332,10 +2332,7 @@ function vercelAdapter() {
2332
2332
  JSON.stringify(
2333
2333
  {
2334
2334
  version: 3,
2335
- routes: [
2336
- { handle: "filesystem" },
2337
- { src: "/(.*)", dest: "/ssr/$1" }
2338
- ]
2335
+ routes: [{ handle: "filesystem" }]
2339
2336
  },
2340
2337
  null,
2341
2338
  2
@@ -2365,16 +2362,6 @@ function vercelAdapter() {
2365
2362
  contentType: "text/html; charset=utf-8"
2366
2363
  };
2367
2364
  }
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
2365
  fs.writeFileSync(configPath, JSON.stringify(config, null, 2));
2379
2366
  }
2380
2367
  console.log(" Vercel output \u2192 .vercel/output/\n");