@sveltejs/adapter-vercel 2.0.3 → 2.0.4

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 +2 -2
  2. package/package.json +1 -1
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}` });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltejs/adapter-vercel",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/sveltejs/kit",