Skip to content

Commit

Permalink
update: server.js
Browse files Browse the repository at this point in the history
  • Loading branch information
521xueweihan committed Aug 19, 2024
1 parent 39563d1 commit 36786a1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ const DEFAULT_LOCALE = 'zh';
const FALLBACK_LOCALE = 'en';
const SUPPORTED_LOCALES = ['zh', 'en'];

const isStaticRoute = (url) =>
url.startsWith('/_next') || url.startsWith('/static');
const isStaticRoute = (url) => url.startsWith('/_next/data/');

const getLocaleFromUrl = (path) => {
const urlParts = path.split('/');
Expand Down

0 comments on commit 36786a1

Please sign in to comment.