JS should automatically flatten promises when awaiting
JS should automatically flatten promises when awaiting
workerd


no support for .ts
npx wrangler pages dev -- SERVER COMMAND . You are also able to get the logs of your functions by pressing "d"._worker file to configured with wrangler v3.22.1. Tested with a fresh npm create cloudflare@latest install with svelte . Picked both the TypeScript and JavaScript versions but neither are working

npx wrangler pages dev -- SERVER COMMAND_workerv3.22.1npm create cloudflare@latestsvelteexport default {
async fetch(request, env) {
const url = new URL(request.url);
if (url.pathname.startsWith('/api/')) {
return new Response('Ok');
}
return env.ASSETS.fetch(request);
}
};