Example Astro app with React islands and the Cloudflare adapter, set up for Webflow Cloud.
.
βββ astro.config.mjs
βββ package.json
βββ package-lock.json
βββ public/
β βββ .assetsignore
β βββ favicon.svg
β βββ webflow.svg
βββ src/
β βββ env.d.ts
β βββ layouts/
β β βββ Layout.astro
β βββ lib/
β β βββ counter.ts
β βββ pages/
β β βββ api/
β β β βββ hello.ts
β β βββ index.astro
β βββ styles/
β βββ global.css
βββ tsconfig.json
βββ webflow.json
βββ wrangler.json
βββ worker-configuration.d.ts
| Command | Action |
|---|---|
npm install |
Installs dependencies |
npm run dev |
Starts the Astro dev server at http://localhost:4321 |
npm run build |
Builds the production site |
npm run preview |
Runs astro build then wrangler dev for a local preview |
npm run deploy |
Deploys with webflow cloud deploy |
npm run astro |
Runs the Astro CLI (e.g. astro add, astro check) |
npm run cf-typegen |
Generates Wrangler TypeScript types (wrangler types) |