Add Cloudflare Pages/Workers deployment support#14
Closed
robdimarco-atxp wants to merge 1 commit intomainfrom
Closed
Add Cloudflare Pages/Workers deployment support#14robdimarco-atxp wants to merge 1 commit intomainfrom
robdimarco-atxp wants to merge 1 commit intomainfrom
Conversation
- Add wrangler.toml configuration with Node.js HTTP server support - Create backend/worker.ts using httpServerHandler for Express compatibility - Add _cloudflare_pages.toml for frontend deployment on Cloudflare Pages - Include Cloudflare deploy button in README.md - Add TypeScript definitions for cloudflare:node module - Leverage Cloudflare's new Node.js HTTP server capabilities (Sept 2024) - Enable real ATXP client integration and Express server functionality Features: - Full Express server running on Cloudflare Workers - Real ATXP client SDK integration for image generation - Connection string validation and account management - Cloudflare Pages for frontend with API routing to Workers backend - Global edge deployment with excellent performance Note: Background processing limitations noted for future Durable Objects enhancement 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
Author
|
Closing this out for the time being. They just released support for node workers 2 days ago and it isn't well documented yet. We can revisit this later. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add experimental Cloudflare Pages/Workers deployment support using Cloudflare's new Node.js HTTP server capabilities announced in September 2024.
Key Features
🆕 Leverages Cutting-Edge Technology
httpServerHandlerfromcloudflare:node@atxp/clientSDK integration for image generation🏗️ Architecture
httpServerHandlerFiles Added
Configuration
wrangler.toml- Cloudflare Workers configuration with Node.js compatibility_cloudflare_pages.toml- Cloudflare Pages configuration with API routingbackend/cloudflare-types.d.ts- TypeScript definitions for Cloudflare modulesImplementation
backend/worker.ts- Express server adapter usinghttpServerHandlerREADME.md- Added Cloudflare deploy buttonTechnical Details
Express Integration
Capabilities
Deployment Flow
Status: Experimental
This implementation uses very recent Cloudflare features and should be considered experimental. It demonstrates the potential for running full Express applications on Cloudflare's edge network.
Testing Required
🤖 Generated with Claude Code