Vike
Introducción
Section titled “Introducción”> bun create vike@latest vike-school --- --react --tailwindcss --hono --cloudflare
Cloudflare
Section titled “Cloudflare”Modifica la propiedad name
del fichero wrangler.toml
:
name = "vike-school"compatibility_date = "2024-09-29"pages_build_output_dir = "./dist/cloudflare"compatibility_flags = [ "nodejs_compat" ]
El nombre debe ser único.
> bun run build
> bun run wrangler pages deploy...Successfully logged in.√ The project you specified does not exist: "vike-school". Would you like to create it? » Create a new project√ Enter the production branch name: ... main
// server/index.js