@sveltejs/adapter-vercel 2.0.3 → 2.1.0

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.
Files changed (2) hide show
  1. package/index.js +4 -3
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -274,12 +274,12 @@ const plugin = function (defaults = {}) {
274
274
 
275
275
  static_config.routes.push({
276
276
  src: src + '$',
277
- dest: `${isr_name}${q}`
277
+ dest: `/${isr_name}${q}`
278
278
  });
279
279
 
280
280
  static_config.routes.push({
281
281
  src: src + '/__data.json$',
282
- dest: `${isr_name}/__data.json${q}`
282
+ dest: `/${isr_name}/__data.json${q}`
283
283
  });
284
284
  } else if (!singular) {
285
285
  static_config.routes.push({ src: src + '(?:/__data.json)?$', dest: `/${name}` });
@@ -487,7 +487,8 @@ async function create_function_bundle(builder, entry, dir, config) {
487
487
  memory: config.memory,
488
488
  maxDuration: config.maxDuration,
489
489
  handler: path.relative(base + ancestor, entry),
490
- launcherType: 'Nodejs'
490
+ launcherType: 'Nodejs',
491
+ experimentalResponseStreaming: true
491
492
  },
492
493
  null,
493
494
  '\t'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltejs/adapter-vercel",
3
- "version": "2.0.3",
3
+ "version": "2.1.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/sveltejs/kit",
@@ -29,7 +29,7 @@
29
29
  "devDependencies": {
30
30
  "@types/node": "^16.18.6",
31
31
  "typescript": "^4.9.4",
32
- "@sveltejs/kit": "^1.7.1"
32
+ "@sveltejs/kit": "^1.8.3"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@sveltejs/kit": "^1.5.0"