fix(dev): apply headers from route rules for static assets #6475
Annotations
4 errors
Run pnpm vitest-es --coverage:
test/presets/netlify-legacy.test.ts#L84
Error: Snapshot `nitro:preset:netlify-legacy > should add route rules - headers 1` mismatched
- Expected
+ Received
@@ -7,6 +7,7 @@
access-control-max-age: 0
/rules/nested/*
x-test: test
/build/*
cache-control: public, max-age=3600, immutable
+ x-build-header: works
"
❯ test/presets/netlify-legacy.test.ts:84:25
|
Run pnpm vitest-es --coverage:
test/presets/netlify.test.ts#L64
Error: Snapshot `nitro:preset:netlify > adds route rules - headers 1` mismatched
- Expected
+ Received
@@ -7,6 +7,7 @@
access-control-max-age: 0
/rules/nested/*
x-test: test
/build/*
cache-control: public, max-age=3600, immutable
+ x-build-header: works
"
❯ test/presets/netlify.test.ts:64:25
|
Run pnpm vitest-es --coverage:
test/presets/vercel.test.ts#L25
Error: Snapshot `nitro:preset:vercel > should add route rules to config 1` mismatched
- Expected
+ Received
@@ -66,10 +66,11 @@
"status": 307,
},
{
"headers": {
"cache-control": "public, max-age=3600, immutable",
+ "x-build-header": "works",
},
"src": "/build/(.*)",
},
{
"continue": true,
❯ test/presets/vercel.test.ts:25:24
|
Run pnpm vitest-es --coverage
Process completed with exit code 1.
|
Loading