Hi! I’m administering a website https://berachah-church.netlify.app (also set up DNS for just https://berachah.church) and I’m seeing some odd SSR traffic in my function logs (in the ___netlify-handler
function).
I’m getting hit with requests every few seconds for routes that do not exist, or routes that are a weird jumble/repetition of valid routes. Here’s a (very small) sampling of just the last minute:
Dec 21, 10:45:54 AM: bf044880 INFO [GET] /information/lessons/basics/lessons/samples/information/related-activities/information/about/lessons/basics/about/lessons/samples/lessons/lessons/basics/information/about/lessons/samples/selectedlessons.html (SSR)
Dec 21, 10:45:54 AM: bf044880 Duration: 4.57 ms Memory Usage: 150 MB
Dec 21, 10:45:56 AM: 4be831f5 INFO [GET] /order/about/about/lessons/basics/lessons/lessons/basics/about/lessons/information/standardsubjectindex.html (SSR)
Dec 21, 10:45:56 AM: 4be831f5 Duration: 5.70 ms Memory Usage: 150 MB
Dec 21, 10:45:57 AM: dbf193b3 INFO [GET] /information/lessons/basics/lessons/samples/information/related-activities/information/about/lessons/basics/about/lessons/samples/lessons/basics/about/about/information/lessons/samples/lessons/information/catalog.html (SSR)
Dec 21, 10:45:57 AM: dbf193b3 Duration: 4.68 ms Memory Usage: 150 MB
Dec 21, 10:46:05 AM: 5b74162d INFO [GET] /information/lessons/basics/lessons/samples/information/related-activities/information/about/lessons/basics/about/lessons/samples/lessons/lessons/basics/information/about/updates.html (SSR)
Dec 21, 10:46:05 AM: 5b74162d Duration: 5.18 ms Memory Usage: 150 MB
Some additional context:
Before switching this site to Netlify, I did have just a static HTML+CSS+JS site hosted on a Windows IIS server. This traffic did not appear while I was developing the site with the generated Netlify URL, only when I made it accessible at it’s current custom domain. Some of the .html
resources being requested were names of pages on the old site, but of course were not hosted at those ridiculously long routes.
I am also using next-pwa
to serve the site with a service worker, if that has any bearing on this issue
I guess I have a few questions on this:
- Can I identify where these requests are coming from? I have set up 404 route logging and so am recording legitimate 404s, but none of these weird route requests are being captured by my own logs.
- Shouldn’t all 404s fallback to my custom statically generated 404 path? Why is SSR being called at all for these? I only have 7 pages in my site that use SSR.
- How can I better handle these so that I don’t run up my function invocations?
ETA: my repo isn’t public, but I am running Next.js 12.1.5 and using Supabase for Auth/storage.