Skip to content

Commit 2691f7f

Browse files
committed
修复docker仓库404问题
1 parent e63ed27 commit 2691f7f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

_worker.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,16 +234,17 @@ export default {
234234
isUuid,
235235
pathname.includes('/_'),
236236
pathname.includes('/r/'),
237+
pathname.includes('/v2/repositories'),
237238
pathname.includes('/v2/user'),
238239
pathname.includes('/v2/orgs'),
239240
pathname.includes('/v2/_catalog'),
240241
pathname.includes('/v2/categories'),
241242
pathname.includes('/v2/feature-flags'),
242243
pathname.includes('search'),
243244
pathname.includes('source'),
244-
pathname === '/',
245-
pathname === '/favicon.ico',
246-
pathname === '/auth/profile',
245+
pathname == '/',
246+
pathname == '/favicon.ico',
247+
pathname == '/auth/profile',
247248
];
248249

249250
if (conditions.some(condition => condition) && (fakePage === true || hostTop == 'docker')) {

0 commit comments

Comments
 (0)