@sveltejs/adapter-vercel 6.3.3 → 6.3.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 +5 -1
  2. package/package.json +6 -7
package/index.js CHANGED
@@ -683,10 +683,14 @@ function static_vercel_config(builder, config, dir) {
683
683
  // Prevent incorrect caching: if a request to /_app/immutable/* doesn't match
684
684
  // a static file, return 404 instead of falling through to dynamic routes.
685
685
  // Otherwise, we could accidentally immutably cache dynamic content served
686
- // by the fallback function.
686
+ // by the fallback function. `no-store` stops the earlier immutable header
687
+ // from sticking to this 404, so a missing asset isn't cached for a year.
687
688
  routes.push({
688
689
  src: `/${builder.getAppPath()}/immutable/.+`,
689
690
  status: 404,
691
+ headers: {
692
+ 'cache-control': 'no-store'
693
+ },
690
694
  continue: false
691
695
  });
692
696
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltejs/adapter-vercel",
3
- "version": "6.3.3",
3
+ "version": "6.3.4",
4
4
  "description": "A SvelteKit adapter that creates a Vercel app",
5
5
  "keywords": [
6
6
  "adapter",
@@ -35,14 +35,13 @@
35
35
  ],
36
36
  "dependencies": {
37
37
  "@vercel/nft": "^1.3.2",
38
- "esbuild": "^0.25.4"
38
+ "esbuild": "^0.28.1"
39
39
  },
40
40
  "devDependencies": {
41
- "@sveltejs/vite-plugin-svelte": "^6.0.0-next.3",
42
- "@types/node": "^18.19.119",
43
- "typescript": "^5.3.3",
44
- "vitest": "^4.0.0",
45
- "@sveltejs/kit": "^2.53.1"
41
+ "@types/node": "^18.19.130",
42
+ "typescript": "^6.0.2",
43
+ "vitest": "^4.1.7",
44
+ "@sveltejs/kit": "^2.66.0"
46
45
  },
47
46
  "peerDependencies": {
48
47
  "@sveltejs/kit": "^2.4.0"