what counts as workers/pages function
Hello.
So i made a sveltekit web app. hosted on cloudflare.
it shows up under
'Workers & Pages' -> 'Overview'
section.
i can see that there's a limit of 100k dailiy requests, but i don't quite understand what requests these refer to.
i have several +page.server.js
which are basically supposed to execute some function on the server-side. does that count for those requests or not? i don't quite get it.2 Replies
i can see that there's a limit of 100k dailiy requests, but i don't quite understand what requests these refer to.Requests which are processed/invocate Workers or Functions For Pages specifically, Static Assets are free and unlimited.
i have several +page.server.js which are basically supposed to execute some function on the server-side. does that count for those requests or not? i don't quite get it.I'm not too familiar with sveltekit, but any framework that works on Pages should wrap server-side things up into functions and create a routing configuration, so that should. You can always go under your latest deployment -> Functions -> Begin Log stream under Real-time logs, and see exactly what is running your functions. You'll only see requests that hit your functions under that, not ones that hit static assets. Some frameworks like next-on-pages use Functions for routing and thus even html and most requests invocate a function ?pages-logs
If you're looking to tail a Pages Function you can do so in the UI here: https://dash.cloudflare.com?to=/:account/pages/view/:pages-project/:pages-deployment/functions
or with Wrangler:
wrangler pages deployment tail [deploymentId/url]