Files
klz-cables.com/.pnpm-store/v10/files/0f/f3195ad3bae7f26e33bf55d274730d67e29004574bca40aa788573abf4d7598239cb402d00e5b2772d32c9b7c183ddb6a99d1979df8143d6baa5ab85a4f09d
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

27 lines
809 B
Plaintext

function receiveRoutingConfig(input) {
return {
...input,
localePrefix: receiveLocalePrefixConfig(input.localePrefix),
localeCookie: receiveLocaleCookie(input.localeCookie),
localeDetection: input.localeDetection ?? true,
alternateLinks: input.alternateLinks ?? true
};
}
function receiveLocaleCookie(localeCookie) {
return localeCookie ?? true ? {
name: 'NEXT_LOCALE',
sameSite: 'lax',
...(typeof localeCookie === 'object' && localeCookie)
// `path` needs to be provided based on a detected base path
// that depends on the environment when setting a cookie
} : false;
}
function receiveLocalePrefixConfig(localePrefix) {
return typeof localePrefix === 'object' ? localePrefix : {
mode: localePrefix || 'always'
};
}
export { receiveRoutingConfig };