/ 设置 10 秒超时 // 每日统计清 0 runtime_set('todaycomments', 0); runtime_set('todayarticles', 0); runtime_set('todayusers', 0); if ($forumlist) { $fidarr = array(); foreach ($forumlist as $fid => $forum) { $fidarr[] = $forum['fid']; } forum_update($fidarr, array('todayposts' => 0, 'todaythreads' => 0)); } // 清理临时附件 attach_gc(); // 当天24点 $today = strtotime(date('Ymd')) + 86400; runtime_set('cron_2_last_date', $today, TRUE); // 往前推8个小时,尽量保证在前一天 升级过来和采集的数据会很卡 // table_day_cron($time - 8 * 3600); cache_delete('cron_lock_2'); } } } ?>next.js - Problem with PageSpeed Insights: RPC::DEADLINE_EXCEEDED - Stack Overflow|Concepts Of Algorithm

next.js - Problem with PageSpeed Insights: RPC::DEADLINE_EXCEEDED - Stack Overflow

admin2025-04-19  2

I have a problem with my portfolio site: .

I can't test the site in PageSpeed Insights—I keep getting the error:

RPC::DEADLINE_EXCEEDED: context deadline exceeded
or a similar message.

However, Lighthouse tests work fine, and the site is already indexed.

I built it using Next.js 14.2.15 and next-intl 3.22, so the issue might be related to redirects in the language versions or my middleware file.

Here is my middleware.ts file:

import { NextResponse } from 'next/server';

export function middleware(request) {
    const { pathname, search } = request.nextUrl;

    if (pathname === '/') {
        return NextResponse.redirect(new URL(`/pl${search}`, request.url));
    }

    return NextResponse.next();
}

export const config = {
    matcher: ['/'],
};
转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1745057854a282511.html

最新回复(0)