Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions apps/csk/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,13 @@ export async function middleware(request: NextRequest) {
const response = await uniformMiddleware({
rewriteRequestPath: async ({ url }) => ({
path: formatPath(url.pathname, locales.defaultLocale),
keys: {
search: url.toString(),
},
}),
})(request).then(result =>
result.headers.get('x-middleware-rewrite')
? result
: uniformMiddleware({
rewriteRequestPath: async ({ url }) => ({
path: formatPath(url.pathname, undefined),
keys: {
search: url.toString(),
},
}),
})(request)
);
Expand All @@ -47,5 +41,3 @@ export async function middleware(request: NextRequest) {
export const config = {
matcher: ['/((?!api|_next/static|_next/image|favicon.ico|sitemap.xml|robots.txt).*)'],
};

export const runtime = 'nodejs';
2 changes: 2 additions & 0 deletions apps/csk/src/utils/getEnrichmentBoostedOrderBy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ export const filterMaxScores = (data: BoostInclusions): BoostInclusions => {
};

export const getEnrichmentBoostedOrderBy = async (boostEnrichments: string[]) => {
// ToDo: Fix compatibility ppr with chashing
return undefined;
const cookieStore = await cookies();

const scoreCookie = cookieStore.get(UNIFORM_DEFAULT_COOKIE_NAME)?.value;
Expand Down