Skip to content

Commit

Permalink
fix(Next-intl): Remove locale prefix in URL
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangnt2 committed Nov 30, 2023
1 parent c898a5d commit 6291205
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/middleware.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const adminPages = ['/admin']
const intlMiddleware = createIntlMiddleware({
locales,
defaultLocale: 'en',
localePrefix: 'never',
})

const authMiddleware = withAuth(
Expand Down

0 comments on commit 6291205

Please sign in to comment.