SShortSingh.
Back to feed

Developer details how to deploy to Cloudflare Pages using pure Python, no Node.js

0
·2 views

A developer running a Python-only content pipeline needed to deploy static sites to Cloudflare Pages on a schedule without using the official Node.js-based Wrangler tool. By reverse-engineering Wrangler's network traffic, they reimplemented the four-step Direct Upload process using Python's standard library. A key discovery was that Cloudflare hashes assets using BLAKE3 applied to the base64-encoded file contents plus the file extension, not a simple SHA-256 of raw bytes — a mismatch that causes silent 404s with no error feedback. The author also found that two of the four API endpoints use a different URL structure and JWT authentication, an asymmetry that cost significant debugging time. The post serves as a practical guide for developers looking to integrate Cloudflare Pages deployments into Python pipelines without adding a Node.js dependency.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingHacker News ·

Greenland warns US oil firm over illegal drilling operations on its territory

Greenland's government has issued a strong warning to an American oil company after it allegedly began drilling wells without proper authorization. The firm has been reported to have ties to the Trump administration, adding a political dimension to the dispute. Greenland authorities are demanding the company halt operations and comply with local regulations. The incident raises concerns about resource extraction sovereignty in the Arctic territory, which has been a subject of US geopolitical interest in recent years.

0
ProgrammingHacker News ·

OpenAI's Head of Ethics Chloé Bakalar Departs, Raising Questions

Chloé Bakalar, who served as OpenAI's Head of Ethics, has left the company, prompting discussion about the circumstances of her departure. Her exit has drawn attention given the critical nature of her role overseeing ethical standards at one of the world's most prominent AI organizations. The departure raises broader questions about OpenAI's commitment to ethics leadership amid rapid product development. Details surrounding the exact reasons for her leaving have not been fully disclosed publicly.

0
ProgrammingDEV Community ·

Limen library enables multi-tenant auth with org roles and scoped data in Go

A new developer guide demonstrates how to build multi-tenant authentication in Go using the open-source Limen library and its Organization plugin. The setup allows a single user to belong to multiple organizations, each acting as an isolated tenant with its own members, roles, invitations, and project data. Developers can define tenant-scoped roles such as owner, admin, and member, alongside app-specific permissions like project:create. The guide uses Go 1.25+ and PostgreSQL, with optional Node 20+ support for frontend integration. A protected API endpoint is built to enforce permission checks before allowing tenant-scoped actions such as creating a project.

0
ProgrammingDEV Community ·

Solo Maintenance Tech Builds Custom Tool to Manage Seven Sites and Service Trucks

A single maintenance technician responsible for seven business locations — including a dealership, body shop, parts warehouse, and five auto parts stores — built his own digital management system after commercial work order software failed to meet his needs. Work requests previously arrived through informal channels like personal texts and verbal mentions, with no central record for tracking or follow-up. The custom tool allows anyone at any location to submit a problem report without an account, while all requests funnel into one dashboard for the technician. It also tracks scheduled maintenance and manages parts inventory separately for each physical site and each service truck, preventing the technician from arriving at a job without needed supplies. A key design choice was keeping truck inventory visible only on the back end, so public report forms show only the seven physical locations, reducing confusion for staff submitting requests.