next.jsvercel

Why is there .php files in my Nextjs v14 static site which is deployed on Vercel?


I was checking my Vercel hobby plan's bandwidth usage of last 30 days and I found that there's bandwidth usage of PHP files, which my project doesn't have, because its a static site, which is not calling a single REST API or anything, and My portfolio website is developed in NextJs 14 App Directory

I know Nextjs doesn't use PHP or anything, and besides that, I've not developed any APIs in Nextjs as well, its a very.

Am I hacked, is someone using my Vercel to host their own PHP project? Some files names are prefixed with "wp" but I've never used wordpress in my life

I can provide more info if required, just ask me

enter image description here

I wanna know why there's PHP files requested from my server and served, and how to stop


Solution

  • As per ceejayoz's answer

    When pages with .php extension are requested, but because those pages doesn't exist, my NextJs App send 404 page instead, so the bandwidth used is because Vercel is sending a 404 page in response