@sveltejs/adapter-vercel 7.0.0-next.0 → 7.0.0-next.1
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/index.js +5 -1
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -630,10 +630,14 @@ function static_vercel_config(builder, config, dir) {
|
|
|
630
630
|
// Prevent incorrect caching: if a request to /_app/immutable/* doesn't match
|
|
631
631
|
// a static file, return 404 instead of falling through to dynamic routes.
|
|
632
632
|
// Otherwise, we could accidentally immutably cache dynamic content served
|
|
633
|
-
// by the fallback function.
|
|
633
|
+
// by the fallback function. `no-store` stops the earlier immutable header
|
|
634
|
+
// from sticking to this 404, so a missing asset isn't cached for a year.
|
|
634
635
|
routes.push({
|
|
635
636
|
src: `/${builder.getAppPath()}/immutable/.+`,
|
|
636
637
|
status: 404,
|
|
638
|
+
headers: {
|
|
639
|
+
'cache-control': 'no-store'
|
|
640
|
+
},
|
|
637
641
|
continue: false
|
|
638
642
|
});
|
|
639
643
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sveltejs/adapter-vercel",
|
|
3
|
-
"version": "7.0.0-next.
|
|
3
|
+
"version": "7.0.0-next.1",
|
|
4
4
|
"description": "A SvelteKit adapter that creates a Vercel app",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"adapter",
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@vercel/nft": "^1.3.2",
|
|
38
|
-
"rolldown": "^1.
|
|
38
|
+
"rolldown": "^1.1.2"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/node": "^22.19.19",
|
|
42
42
|
"typescript": "^6.0.3",
|
|
43
|
-
"vitest": "^4.1.
|
|
44
|
-
"@sveltejs/kit": "^3.0.0-next.
|
|
43
|
+
"vitest": "^4.1.9",
|
|
44
|
+
"@sveltejs/kit": "^3.0.0-next.6"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@sveltejs/kit": "^3.0.0"
|