Skip to content

fix(config): normalize route rules with leading slash #6638

fix(config): normalize route rules with leading slash

fix(config): normalize route rules with leading slash #6638

Triggered via pull request January 8, 2025 09:02
Status Failure
Total duration 1m 54s
Artifacts

ci.yml

on: pull_request
Matrix: ci
Fit to window
Zoom out
Zoom in

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