New:Socket for Asana Is Now Available.Learn more
Get Started

astro-cloudflare-types

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

astro-cloudflare-types

Generate Cloudflare bindings types from Wrangler configuration file.

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

astro-cloudflare-types

npm version

Generate Cloudflare bindings types from Wrangler configuration file.

  • Use bindings in your Astro application - Cloudflare Docs
  • Typing - Astro Docs

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

FAQs

Package last updated on 21 Feb 2025

Related posts