Skip to content

Vike

> bun create vike@latest vike-school --- --react --tailwindcss --hono --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