fix(config): normalize route rules with leading slash #6638
Annotations
6 errors and 2 warnings
test/presets/netlify-legacy.test.ts > nitro:preset:netlify-legacy > should add route rules - headers:
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,8 @@
access-control-max-age: 0
/rules/nested/*
x-test: test
/build/*
cache-control: public, max-age=3600, immutable
+ /*
+ x-test: test
"
❯ test/presets/netlify-legacy.test.ts:84:25
|
test/presets/netlify.test.ts > nitro:preset:netlify > adds route rules - headers:
test/presets/netlify.test.ts#L64
Error: Snapshot `nitro:preset:netlify > adds route rules - headers 1` mismatched
- Expected
+ Received
@@ -7,6 +7,8 @@
access-control-max-age: 0
/rules/nested/*
x-test: test
/build/*
cache-control: public, max-age=3600, immutable
+ /*
+ x-test: test
"
❯ test/presets/netlify.test.ts:64:25
|
test/presets/vercel.test.ts > nitro:preset:vercel > should add route rules to config:
test/presets/vercel.test.ts#L25
Error: Snapshot `nitro:preset:vercel > should add route rules to config 1` mismatched
- Expected
+ Received
@@ -70,10 +70,16 @@
"cache-control": "public, max-age=3600, immutable",
},
"src": "/build/(.*)",
},
{
+ "headers": {
+ "x-test": "test",
+ },
+ "src": "/(.*)",
+ },
+ {
"continue": true,
"headers": {
"cache-control": "public,max-age=31536000,immutable",
},
"src": "/build(.*)",
❯ test/presets/vercel.test.ts:25:24
|
ci (ubuntu-latest)
Process completed with exit code 1.
|
ci (windows-latest)
The job was canceled because "ubuntu-latest" failed.
|
ci (windows-latest)
The operation was canceled.
|
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
ci (ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|