admin管理员组

文章数量:1300061

I am seeing the following logs in my API routes that are making it very difficult to track the logs I am looking for. I have tried a ton of things to silence these with no luck. Is it possible to silence these cache logs in a dev environment? I am using nextjs15 connected with supabase. I am not looking to cache (although I don't even know how I would try that) but I just want to silence these logs in development. If there is way to even do this from the terminal side i would accept that, I just want to filter this away so I can focus on developing the API routes!

 GET /auth/api/get-schedule 200 in 297ms
 │ GET https://egqxka13glvumqxc../auth/v1/user 200 in 99ms (cache skip)
 │ │ Cache skipped reason: (auto no cache)
 │ GET https://egqxkdfgdfgvumqxc../rest/v1/sp_users?select=user_pai.. 200 in 92ms (cache skip)
 │ │ Cache skipped reason: (auto no cache)
 │ GET https://egqxka45lvumqxc../rest/v1/user_topics?select=*&user_i.. 200 in 95ms (cache skip)
 │ │ Cache skipped reason: (auto no cache)
 GET /auth/api/transcript-history 200 in 348ms
 │ GET https://egqxka5dfglvumqxc../auth/v1/user 200 in 86ms (cache skip)
 │ │ Cache skipped reason: (auto no cache)
 │ GET https://egqxkandfgmqxc../rest/v1/spe_users?select=phone_nu.. 200 in 126ms (cache skip)
 │ │ Cache skipped reason: (auto no cache)
 │ GET https://egqxdfgvumqxc../rest/v1/transcripts?select=summary%.. 200 in 126ms (cache skip)
 │ │ Cache skipped reason: (auto no cache)

I tried setting logging in nextjs (didn't work) I tried setting logging from supabase config (didn't work) i tried overwriting global logging for the app (not only didn't work, but removed regular logs and kept these cached logs) I tried setting next.config.ts with no logging such as:

  logging: {
    fetches: {
      fullUrl: false,
      hmrRefreshes: false,
    },
  },

I have also tried prayer, frustrating, sleepless nights, and bargaining. nothing has worked. So now I'm here. probably should have come here earlier!

本文标签: javascriptHow to Filter out Supabase Cache Logs in Nextjs 15 appStack Overflow