SShortSingh.
Back to feed

Travel Directory Moves Off Vercel's Free Plan to Cloudflare Workers

0
·6 views

A developer running an 800-page travel directory with an affiliate revenue model moved the site off Vercel's Hobby plan, which prohibits commercial use. The move was prompted by a storage warning and the realization that the site earned commission, making the free tier inappropriate. Rather than a simple settings change, the migration required rebuilding the 650-line vercel.json routing logic, which turned out to be an implicit program that Vercel interpreted. A roughly 120-line Cloudflare Worker was written to reproduce redirect ordering, path matching, proxying, static serving and headers. The developer validated the new setup by comparing responses against the old host across all sitemap URLs before switching over.

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
ProgrammingDEV Community ·

Passkeys Aim to Replace Passwords With Device-Based Login

Long-standing advice to use stronger passwords has failed to address problems like reuse and easy guessing. Passkeys remove the password altogether by pairing a private key stored on the user's device with a public key held by the website. Logins are confirmed through a fingerprint, face scan, or screen lock, so no shared secret crosses the internet to be intercepted. Major platforms including Apple, Google, and Microsoft now support them, though syncing, setup, and recovery can still be inconvenient. For now, many sites keep passwords as a fallback during a gradual transition.

0
ProgrammingDEV Community ·

How Large Language Models Like ChatGPT Work: A Plain-English Explainer

Chatbots such as ChatGPT generate human-like replies by repeatedly predicting the most likely next token, which are small chunks of text. The model learns these patterns through pre-training on vast amounts of text, storing what it learns as numerical parameters, and is then fine-tuned on helpful conversations to act more like an assistant. Most modern models use the transformer design, whose attention mechanism weighs how earlier tokens relate to the next one. Because outputs are built from plausible patterns rather than verified facts, these systems can state false information confidently, a problem known as hallucination.

0
ProgrammingDEV Community ·

Public Wi-Fi Risks Today: Fake Hotspots and Login Traps Matter More Than Eavesdropping

Long-standing advice to avoid public Wi-Fi entirely is outdated, since most sites now use encryption that protects the content of what users send and view. The main remaining dangers include fake hotspots set up to mimic legitimate venue networks, phony sign-in pages that harvest passwords, and captive portals requesting excessive personal information. Exposure can also come from devices with file sharing enabled or outdated software that is easier to attack. Experts recommend verifying network names with staff, using apps instead of browser logins for sensitive services, marking networks as public, keeping devices updated, and considering a VPN or personal phone hotspot.

0
ProgrammingDEV Community ·

AI Tools Are Making Restaurant Menus Easier to Navigate for Diners

Reading a restaurant menu can be difficult for people managing dietary needs, allergies, or health goals, since traditional menus often lack detailed nutritional information. A new field called AI menu analysis uses natural language processing, computer vision, and machine learning to extract and enrich menu data. These tools can estimate calories, macronutrients, micronutrients, and allergen content, sometimes even from dish images. Combined with user profiles, the technology can highlight suitable dishes, such as vegan options or safe choices for nut allergies, and flag less suitable ones. The article, published on DEV Community, presents this as a way to reduce the cognitive load of comparing dishes on large menus.