Skip to content

Commit

Permalink
Refactor extractNamespaces usage in entry.server.tsx to use remixContext
Browse files Browse the repository at this point in the history
  • Loading branch information
jamalsoueidan committed Jun 22, 2024
1 parent 3735e2c commit 227f0d1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/entry.server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ export default async function handleRequest(
],
});

const namespaces = extractNamespaces(
context.routeModules as EntryContext['routeModules'],
);
const namespaces = extractNamespaces(remixContext.routeModules);

await initI18nServer(
context.storefront.i18n.language.toLowerCase(),
Expand Down

0 comments on commit 227f0d1

Please sign in to comment.