@sveltejs/adapter-vercel 1.0.0-next.77 → 1.0.0-next.79

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 +3 -3
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -98,7 +98,7 @@ export default function ({ external = [], edge, split } = {}) {
98
98
  const files = fileURLToPath(new URL('./files', import.meta.url).href);
99
99
 
100
100
  const dirs = {
101
- static: `${dir}/static`,
101
+ static: `${dir}/static${builder.config.kit.paths.base}`,
102
102
  functions: `${dir}/functions`
103
103
  };
104
104
 
@@ -118,7 +118,7 @@ export default function ({ external = [], edge, split } = {}) {
118
118
  ...redirects[builder.config.kit.trailingSlash],
119
119
  ...prerendered_redirects,
120
120
  {
121
- src: `/${builder.config.kit.appDir}/.+`,
121
+ src: `/${builder.getAppPath()}/.+`,
122
122
  headers: {
123
123
  'cache-control': 'public, immutable, max-age=31536000'
124
124
  }
@@ -225,7 +225,7 @@ export default function ({ external = [], edge, split } = {}) {
225
225
  sliced_pattern = '^/?';
226
226
  }
227
227
 
228
- const src = `${sliced_pattern}(?:/__data.js)?$`; // TODO adding /__data.js is a temporary workaround — those endpoints should be treated as distinct routes
228
+ const src = `${sliced_pattern}(?:/__data.json)?$`; // TODO adding /__data.json is a temporary workaround — those endpoints should be treated as distinct routes
229
229
 
230
230
  await generate_function(route.id || 'index', src, entry.generateManifest);
231
231
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltejs/adapter-vercel",
3
- "version": "1.0.0-next.77",
3
+ "version": "1.0.0-next.79",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/sveltejs/kit",
@@ -27,7 +27,7 @@
27
27
  "esbuild": "^0.15.7"
28
28
  },
29
29
  "devDependencies": {
30
- "@sveltejs/kit": "1.0.0-next.492",
30
+ "@sveltejs/kit": "1.0.0-next.515",
31
31
  "@types/node": "^16.11.36",
32
32
  "typescript": "^4.8.2"
33
33
  },