From 4313c6d301df66d7fff874e0317d46e76a6e9116 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 15 Jan 2026 13:39:18 +0000 Subject: [PATCH 1/2] Initial plan From 82d1c06972ad7413605467d8a2a9a77077d06120 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 15 Jan 2026 13:41:33 +0000 Subject: [PATCH 2/2] Add Cloudflare wrangler.toml configuration and update .gitignore Co-authored-by: jackrua <155536850+jackrua@users.noreply.github.com> --- .gitignore | 4 ++++ wrangler.toml | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 wrangler.toml diff --git a/.gitignore b/.gitignore index 5556c9f..be77f8f 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,7 @@ __pycache__ .pytest_cache/ *.lock examples/rag/README.md + +# Cloudflare +.wrangler/ +.dev.vars diff --git a/wrangler.toml b/wrangler.toml new file mode 100644 index 0000000..60bd182 --- /dev/null +++ b/wrangler.toml @@ -0,0 +1,58 @@ +# Cloudflare Workers/Pages configuration for pgvector-python +# This configuration can be used to deploy examples or documentation to Cloudflare + +name = "pgvector-python" +compatibility_date = "2026-01-15" + +# Main entry point (can be customized based on your needs) +# main = "src/index.js" + +# For Pages deployments, uncomment and set the build output directory +# pages_build_output_dir = "./dist" + +# Workers dev mode (default: true for local development) +workers_dev = true + +# Account ID (set this to your Cloudflare account ID when deploying) +# account_id = "" + +# Route configuration (uncomment and customize for production deployments) +# [[routes]] +# pattern = "example.com/*" +# zone_name = "example.com" + +# Environment variables +# [vars] +# API_KEY = "your-api-key" + +# KV Namespaces (for Workers KV storage) +# [[kv_namespaces]] +# binding = "KV" +# id = "your-kv-namespace-id" + +# D1 Databases (for serverless SQL databases) +# [[d1_databases]] +# binding = "DB" +# database_name = "pgvector-db" +# database_id = "your-database-id" + +# R2 Buckets (for object storage) +# [[r2_buckets]] +# binding = "MY_BUCKET" +# bucket_name = "my-bucket" + +# Compatibility flags +# [compatibility_flags] + +# Build configuration +# [build] +# command = "npm run build" + +# Environment-specific configurations +# [env.staging] +# name = "pgvector-python-staging" +# workers_dev = false + +# [env.production] +# name = "pgvector-python-production" +# workers_dev = false