Skip to content

Commit 36786a1

Browse files
committed
update: server.js
1 parent 39563d1 commit 36786a1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ const DEFAULT_LOCALE = 'zh';
1212
const FALLBACK_LOCALE = 'en';
1313
const SUPPORTED_LOCALES = ['zh', 'en'];
1414

15-
const isStaticRoute = (url) =>
16-
url.startsWith('/_next') || url.startsWith('/static');
15+
const isStaticRoute = (url) => url.startsWith('/_next/data/');
1716

1817
const getLocaleFromUrl = (path) => {
1918
const urlParts = path.split('/');

0 commit comments

Comments
 (0)