It depends on how good you/your framework is at generating a _routes.json. If done correctly, you co
It depends on how good you/your framework is at generating a _routes.json. If done correctly, you could do it in a single Functions request

_routes.json a while ago but it's an area that I didn't add documentation about because, well, it should be reserved for advanced use cases where people absolutely know what they're doing and that excluding a file won't cause issues. e.g., favicon.ico would be safe to put in _routes.json, but the problem would be when people try to put actual routes in it - that would most likely lead to notable issues.wrangler pages deploy to deploy static files and Pages Functions. I would like to deploy only the Pages Functions, without deploying the static files. I.e. I'm using wrangler pages deploy ./build-output ..., which deploys the static files from ./build-output and also deploys ./functions by the file-based routing convention.wrangler pages deploy to deploy only the pages functions? If I have an empty directory with only the functions directory, would wrangler pages deploy know to upload the functions but not delete the static files already uploaded?
JSON.parse(await event.request.text());, but yeah it should always be in requestcontext object with env attached: https://developers.cloudflare.com/pages/platform/functions/api-reference/#types

wrangler pages deployment tail [deploymentId/url]_routes.json12:43:50.447 ✘ [ERROR] Could not resolve "stripe"
12:43:50.447
12:43:50.447 checkout.js:4:19:
12:43:50.447 4 │ import Stripe from 'stripe';
12:43:50.448 ╵ ~~~~~~~~
12:43:50.448
12:43:50.448 You can mark the path "stripe" as external to exclude it from the bundle, which will remove this error.
12:43:50.448
12:43:50.448
12:43:50.450 ✘ [ERROR] Build failed with 1 error:
12:43:50.451
12:43:50.451 checkout.js:4:19: ERROR: Could not resolve "stripe"wrangler pages deploywrangler pages deploywrangler pages deploy ./build-output ..../build-output./functionsJSON.parse(await event.request.text());export async function POST(event) {
const db = event.platform?.env?.DB;`
}contextwrangler pages deployment tail [deploymentId/url]export async function onRequestPost(ctx) {