0.0.1 • Published 8 months ago
astro-cloudflare-types v0.0.1
astro-cloudflare-types
Generate Cloudflare bindings types from Wrangler configuration file.
Install
pnpm i -D astro-cloudflare-types
# pnpm i -D astro-cloudflare-types wrangler @astrojs/cloudflare
# wrangler pages download config [project_name]
Usage
// astro.config.ts
import cloudflare from '@astrojs/cloudflare'
import cloudflareTypes from 'astro-cloudflare-types'
import { defineConfig } from 'astro/config'
export default defineConfig({
adapter: cloudflare({
imageService: 'passthrough',
platformProxy: {
enabled: true,
environment: 'production',
}
}),
integrations: [
cloudflareTypes(),
],
})
LICENSE
MIT - Copyright (c) 2025 Jiakun Zhao
0.0.1
8 months ago