Pages install does not creates pages wrangler.toml
I have fixed, compiled assets for an SPA, but I need some server side routing to make sure we return index.html in certain cases (basically
/prefix/:spa-page-name
), and the static assets (css, js, wasm,...) otherwise.
I'm following https://developers.cloudflare.com/pages/get-started/c3/
So I do npm create cloudflare@latest
and pick hono, but I end up with main = "src/index.ts"
in my wrangler.toml and then cloudflare won't deploy it because it needs pages_build_output_dir
instead.
Also I can see that wrangler.toml can include assets = { directory = "public" }
but the docs talk about doing
and the latter has a typescript error Property 'ASSETS' does not exist on type 'CloudflareBindings'
although there are no runtime errors
Are there any docs for my (I thought really simple) situation because I've got completely lost.Cloudflare Docs
Create projects with C3 CLI · Cloudflare Pages docs
Use C3 (
create-cloudflare
CLI) to set up and deploy new applications using framework-specific setup guides to ensure each new application follows Cloudflare and any third-party best practices for deployment.0 Replies