Painel de Notícias

Tecnologia

7045 posts · 26 feeds · tópicos e interesse por Jev

Filtros
Rock Paper Shotgun

Retro platformer series Dizzy is back for a new game from its original creators, who are really happy for you to know it's made with AI

For British people who were actively playing games in the late 80s and/or retro enthusiasts looking back at that period of the industry, the name Dizzy might ring a bell (it doesn’t for me, but what can I tell you, I’m 24). A prolific platformer series starring a bipedal egg, it spanned formats from the ZX Spectrum to the NES and Game Gear, and managed sixteen(!?) releases between 1987 and 1992 - before slowing significantly past the millenium. Still, that hasn’t stopped its creators, the Oliver Twins, from trying to bring it back in the current era, and so came the announcement of another new Dizzy game during their talk at last weekend’s Play Expo in Blackpool. Read more

Games
Interesse
dev.to

Integration Testing for APIs, Microservices and Event-Driven Systems

Modern applications rarely run as one tightly connected system. They depend on APIs, databases, microservices, message queues and third-party services. That makes integration testing more important because many failures happen between components rather than inside them. A practical integration testing guide should therefore cover how these modern systems communicate, fail and recover. API integration testing checks whether connected services exchange the right data and handle responses correctly. Important checks include: Request and response schemas Status codes Authentication Headers Required fields Invalid input Timeouts Duplicate requests For example, an order service might send payment information to a payment API. The test should confirm that the correct amount, currency and customer details are sent, and that the application handles approved, declined and failed responses properly. A successful 200 response is not always enough. The test should also verify whether the expected data was saved and whether the correct downstream actions happened. Microservices create additional risk because different services can be developed and deployed independently. One service might update its response format while another still expects the old version. Both services may work correctly on their own, but the integration between them breaks. Integration tests for microservices should check: Service-to-service communication API compatibility Authentication Dependency availability Timeouts Partial failures Version changes Contract testing can also help by checking whether a service still follows the interface expected by its consumers. Event-driven systems work differently because the result may not appear immediately. A typical flow might be: Order Service → Message Queue → Inventory Service The test should not simply wait for a fixed number of seconds. It should wait for the expected condition or event. Important scenarios include: Delayed messages Duplicate events Events arr

Dev
Interesse
dev.to

Your AI System Is More Than the Model: What Production AI Architecture Actually Looks Like

A production AI system is rarely just: That architecture works well in a demo. SotaTek, we approach AI development from this broader systems perspective: the model is only one layer of the product, while data, application logic, integrations, security, evaluation, infrastructure, and observability determine whether that capability can actually work in production. The interesting engineering problems are usually somewhere between those boxes. A better starting point is: Consider an internal support assistant. But the real requirement may be: The model is only responsible for part of that workflow. That sounds reasonable, but prompts are not an authorization system. The LLM can decide what information it needs. This also makes the system easier to audit and test. RAG Is an Application Architecture, Not Just a Vector Database A minimal implementation might look like: But this is still missing an important part: authorization-aware retrieval. A semantic search returning the most relevant document does not mean the user should see it. The retrieval system is now part of the security boundary. AI Agents Add a Different Class of Engineering Problems A simplified tool-calling loop might look like: Now the architecture needs more than an LLM. permissions tool contracts state management audit logs approval rules retries idempotency human escalation failure handling This is where an AI agent starts looking much more like a distributed application than a chatbot. Tool Calls Need Idempotency Consider an agent that can create an order. The model calls: { "tool": "create_order", "arguments": { "customer_id": "123", "amount": 500 } } What happens if: The API succeeds. The network times out. The model retries the tool call. Without idempotency, you might create two orders. A safer API design is: POST /orders Idempotency-Key: agent-run-8f32... The backend can then ensure that repeated requests with the same key do not create duplicate side effects. Model Selection Is a System Trade-o

IADev
Interesse
dev.to

AI SaaS Free Trials Are Becoming an Abuse Surface

Consider this composite incident trace: TRIAL INCIDENT 042 New accounts: 186 Unique email addresses: 186 Recognized devices: 4 High-cost generations: 912 Paid conversions: 0 Nothing was technically compromised. No password was stolen. No database was breached. Every account used the signup form correctly and stayed within its advertised trial allowance. The product still lost money. Four devices had created 186 identities, consumed hundreds of expensive AI operations, exported the results, and disappeared. The free trial had become an unprotected compute endpoint. A traditional SaaS trial might expose dashboards, sample data, and limited storage. Supporting another trial user may add almost no immediate infrastructure cost. An AI product behaves differently. Every prompt can trigger model inference, retrieval, embeddings, image generation, document parsing, external API calls, or agent tools. A user does not need to breach the system to create damage. They only need to repeatedly consume something expensive. This problem is accelerating. Stripe reported that its models detected 6.2 times more abusive free trials between November 2025 and February 2026. The company also noted that AI businesses are particularly exposed because each generated output creates a direct compute cost. That changes the engineering question. It is no longer only: How many free requests should a trial include? It becomes: How much unverified economic risk should one identity control? Email verification stops basic scripts. It does not establish that 20 verified email addresses represent 20 different people. Attackers can rotate disposable inboxes, virtual phone numbers, payment cards, residential proxies, and browser profiles. Blocking one signal usually pushes the activity toward another. Cloudflare’s account-abuse guidance recommends examining activity across users, IP addresses, devices, locations, browsers, logins, and registrations. The important word is across. The application needs to

SegurançaIA
Interesse
9to5Mac

If Apple’s AI suggestions in Messages annoys you, there’s a solution

The current beta of iOS 27.2 includes a Siri AI “suggested actions” feature in the Messages app that some will consider useful and others find annoying. A developer who has found a number of unannounced features has discovered that Apple is seeking to keep everyone happy with a new set of options … more…

Mobile
Interesse
MIT Tech Review

Moment Energy and its shipping containers packed with old EV batteries

Demand for energy storage is surging, with capacity expected to grow eightfold in the next decade. To meet that demand, Moment Energy wants to shortcut a supply chain that now flows largely through China, by domestically repurposing EV batteries into new grid-connected storage systems. Moment Energy’s four founders met while studying mechatronics engineering in college…

Geral
Interesse
MIT Tech Review

BasiGo and its fleet of electric buses

BasiGo aims to replace the tens of thousands of diesel-powered buses on sub-Saharan African roads with electric ones that generate far fewer emissions. The company’s pay-as-you-drive business model has helped make EVs more attainable and is changing the way public transport operates. In a bid to contain the covid-19 pandemic in 2020, the Kenyan government…

Geral
Interesse
MIT Tech Review

WaveSave and its portable rubber dam

As sea levels rise and flood risks worsen due to global warming, WaveSave’s easy-to-erect portable dam offers a quick-response tool. People can use the dam to protect themselves and their property, and it can also store freshwater for later use. Communities in Europe, Africa, and Southeast Asia have deployed it successfully. Now, the company is…

Geral
Interesse
MIT Tech Review

Brimstone and its one-stop process for making cleaner cement and critical minerals

Brimstone is making strides on two industrial problems, reducing the emissions from cement and providing a way to produce more critical minerals within the US. If the company can do both, with the same rocks in the same plant, it would unlock a cleaner and more efficient process for manufacturing building materials, aluminum, steel, and…

Geral
Interesse
MIT Tech Review

Energy Dome and its carbon dioxide batteries

There’s a growing need for long-duration storage to meet energy demand and balance out renewables on the grid. Energy Dome uses compressed carbon dioxide gas in its massive grid batteries, which can deliver power for up to 24 hours. As the world races to meet growing electricity demand, solar and onshore wind power have become…

Geral
Interesse
MIT Tech Review

X-energy and its helium-cooled nuclear reactors

X-energy is developing small modular reactors to satisfy some of the planet’s most power-hungry users: industrial manufacturers that need high temperatures to produce billions of tons of concrete, plastics, fibers, and chemicals. Solar panels and wind turbines are great at producing electricity but what heavy industry also needs is raw heat—and lots of it. The manufacture…

Geral
Interesse
MIT Tech Review

Form Energy and its iron batteries

Form Energy is building iron-based batteries that can store energy for multiple days. The company is ramping up supply at its factory and signing deals for commercial projects. New solar and wind installations produce electricity more affordably than fossil fuels in most places, but their output varies based on season, time of day, and weather.…

Geral
Interesse
MIT Tech Review

WeLion New Energy and its semi-solid-state batteries

WeLion New Energy is on a quest to make safer, better batteries. The company’s semi-solid-state cells could improve safety and offer greater energy density than lithium-ion batteries to power electric cars, boats, and drones. From the EVs that carry commuters home to the ships that transport goods across countries, more and more vehicles around us…

Geral
Interesse
MIT Tech Review

Here’s how our climate team picked 10 promising companies to watch

As the team at MIT Technology Review set out to choose companies for this year’s edition of our annual list of Climate Tech Companies to Watch, the challenge felt more daunting than any year since we started compiling the list in 2023. This year is shaping up to be one of the hottest ever recorded.…

Geral
Interesse
dev.to

Your integration's real bugs are in the events you can't trigger

Every integration I have written against a third-party API has the same shape. Those branches are exactly the ones a provider sandbox cannot help me exercise. completed before I finished handling pending. And a classic mock server does not help either: it answers one request at a time with no memory, so it cannot represent "this payment already succeeded, now it is disputed". So I wrote a small tool that treats an integration as what it actually is: a state machine. You describe a scenario in YAML. A session remembers where a client is in the flow, keyed by whatever identifies it in your API - a body field, a header, a query or a path parameter. The same endpoint then answers according to the current state: GET /v1/orders/ord_42/payment -> processing (a few seconds pass, a webhook fires) GET /v1/orders/ord_42/payment -> succeeded (later, another webhook fires) GET /v1/orders/ord_42/payment -> chargeback Entering a state can schedule webhooks: delayed, HMAC-signed in the Stripe format, with retries, a delivery journal and replay. That is the part I care about most, because the webhook path is where my code has the most untested branches. Does the handler reject a forged signature? Does it answer 2xx so the sender stops retrying? Does the same event delivered twice settle once? Two flags make it usable in CI. --time-scale compresses "30 days later" into seconds, so a full lifecycle runs in a test. --seed makes the template functions (ids, timestamps) reproducible, so snapshot assertions are stable. It does not record or proxy real traffic, and it has no GUI. If you need those, WireMock and Mockoon are the right tools. This one is aimed narrowly at deterministic, versionable simulation of event-driven APIs. And there is one honest limitation worth stating up front: a twin is only as accurate as the scenario you write. If the YAML mismodels the real response, the twin will happily repeat your mistake. The workflow that works for me is to confirm the response shape once

Dev
Interesse
dev.to

Safe AI at Scale: Introducing Guardrails for Agent Kernel

By Yaala Labs Deploying AI agents in production comes with critical business risks: brand damage from inappropriate responses, regulatory penalties from data leaks, and customer trust erosion from security breaches. Today, we're announcing Guardrails for Agent Kernel - enterprise-grade content safety that protects your business while accelerating your AI initiatives. Your AI agents are powerful. But are they safe for your business? Every unguarded AI interaction is a potential liability: Financial Risk Data breach penalties: GDPR fines up to €20M or 4% of global revenue HIPAA violations: Up to $1.5M per year for healthcare data exposure PCI DSS non-compliance: Fines, increased processing fees, and contract termination Legal costs: Class-action lawsuits from PII leakage Brand & Reputation Risk Inappropriate content: One viral screenshot of your AI saying something offensive can tank customer trust Off-brand responses: Inconsistent messaging damages brand equity Customer service failures: Frustrated users share negative experiences publicly Competitive disadvantage: Customers choose competitors with safer AI Compliance & Regulatory Risk Industry regulations: Healthcare (HIPAA), finance (PCI DSS), insurance (state regulations) Privacy laws: GDPR, CCPA, PIPEDA, and emerging global privacy frameworks Sector-specific: Legal advice restrictions, financial guidance disclaimers Audit failures: Non-compliant AI systems block certifications and partnerships Agent Kernel's guardrails deliver measurable business value: ✅ Reduce legal exposure - Automatic PII detection prevents data leaks before they happen ✅ Accelerate compliance - Pre-built policies for HIPAA, PCI DSS, and GDPR requirements ✅ Protect brand reputation - Block harmful content before customers see it ✅ Enable faster deployment - Pre-configured safety layers reduce time-to-market ✅ Lower operational costs - Automated content filtering reduces manual review overhead Choose the right guardrail provider for your busin

IASegurança
Interesse
dev.to

Your GitHub README Isn't a Profile. It's a Storefront. (Here Are the 5 Rules I Used

Description: "I stopped decorating my GitHub profile and started shipping it like a product page. Four apps, four download buttons, zero widgets." I [stopped / spent a weekend] treating my GitHub profile like a résumé and started treating it like a product page. Now a stranger lands on it and can download one of my four apps before they finish reading my name. 👉 Live: github.com/Akhouri-Anmol-Kumar Credit: the spark to push my profile past badges came from Giorgi Kobaidze's cyberpunk-console post. Go read it. Open ten popular profile READMEs. You'll see the same things: a wall of badges a stats card that shows commit counts a "Hi 👋 I'm ___" line a snake eating your contribution graph They're decorations. None of them answer the question every visitor has in the first three seconds: "What can I get from this person, right now?" I build desktop apps: ATLOCK, APIC, ANOTE and ACALCU. So I asked myself a different question: What if my README worked like an app store listing? If someone can't download your best work within 3 seconds of landing, the page has failed. So each of my apps gets its own card, and directly under every card is a download button that points to the actual .zip release. There's no "see releases" and no hunting. Card on top, action underneath. It's the same pattern as a store listing. Mine is gold: #B8935F for the light tone and #8a6c3f for the shadow. The ring-light logo, the section headers, the buttons and the card edges all use it. Because every element shares one palette, the page looks designed rather than assembled. Badges look cheap because they're every color at once. Every full-width image on my profile is 830px. That's the entire layout system. Nothing is slightly wider or narrower than its neighbour, so the page reads as one column instead of a pile of widgets. The app cards are 408px, which is two cards plus a gutter inside that same 830. If you only copy one rule from this post, copy this one. My headers aren't "About Me" and "Projects

Dev
Interesse
dev.to

How Does an AI Coding Assistant Actually Understand Your Codebase?

You open your editor, type "fix the shipping bug", and the AI goes ahead and changes the right file, How? Does it read every file? Does it use some kind of search index? Does it dump your entire project Let's break it down properly. The first thing most people assume is that the AI pre-loads the whole codebase before answering. That's not what happens. %%{init: {'theme': 'dark'}}%% flowchart LR subgraph MYTH["❌ What people assume"] direction LR A1["Your codebase\n📁 all files"] -->|"pre-loaded upfront"| B1["AI memory\n🧠"] style A1 fill:#fee2e2,stroke:#ef4444,color:#991b1b style B1 fill:#fee2e2,stroke:#ef4444,color:#991b1b end subgraph REALITY["✅ What actually happens"] direction LR A2["Your codebase\n📁 all files"] -->|"reads only what\nit needs, on demand"| B2["AI memory\n🧠 small slice"] style A2 fill:#dcfce7,stroke:#22c55e,color:#166534 style B2 fill:#dcfce7,stroke:#22c55e,color:#166534 end The AI has a context window — a fixed amount of working memory. Think of a token as roughly ¾ of a word; modern models handle ~100,000–170,000 tokens (~50,000 words) at once. Everything goes If it loaded your entire codebase upfront, it would burn through that budget before you even asked your first question. So, It doesn't load your entire codebase upfront. Instead, it explores on demand — reading only what it needs, when it needs it. Rather than a RAG pipeline — where an AI pre-indexes your code into a searchable database and retrieves chunks at query time — modern AI coding assistants use a set of read tools they call during a conversation to pull specific code into context. The loop has three phases: Discover → Understand → Edit. Each is explained below. %%{init: {'theme': 'dark'}}%% flowchart TD A["You type a request"] A --> B["Step 1 · Discover\nFind candidate files — nearly free"] B --> C["Step 2 · Understand\nRead only what's needed — targeted"] C --> D["Step 3 · Edit\nChange only the lines that matter"] Here's the key insight most people miss: searching is not the sa

IADev
Interesse
dev.to

Power Up Your Agents: Execution Hooks and Smart Memory in Agent Kernel

By Yaala Labs Ever wished you could intercept your AI agent's thoughts before they speak? Or give them a photographic memory that lasts exactly as long as you need? We've got you covered. Agent Kernel now features Execution Hooks and Smart Memory Management - two game-changing capabilities that give you surgical control over how your agents think, remember, and respond. Whether you're building enterprise chatbots, RAG-powered assistants, or multi-agent systems, these features unlock new levels of sophistication without the complexity. Building production AI agents isn't just about picking the right LLM. You need: Safety mechanisms that prevent harmful outputs before they escape Context injection to make your agents smarter with domain knowledge Memory that adapts to different use cases - ephemeral for some data, persistent for others Audit trails that show exactly what your agent saw and said Traditional approaches force you to hack this together with prompt engineering, custom middleware, or framework-specific workarounds. Agent Kernel takes a different path: first-class support for hooks and memory that works across any framework. Think of hooks as strategic checkpoints in your agent's execution pipeline. You get two powerful interception points: These run before your agent sees the user's prompt. Perfect for: 🛡️ Guard Rails - Block inappropriate content before it reaches your agent: class GuardRailHook(PreHook): BLOCKED_KEYWORDS = ["hack", "illegal", "exploit"] async def on_run(self, session, agent, requests): prompt = requests[0].prompt.lower() for keyword in self.BLOCKED_KEYWORDS: if keyword in prompt: return AgentReplyText( text=f"I cannot assist with requests related to '{keyword}'." ) return requests # Safe - proceed to agent 🧠 RAG Context Injection - Enrich prompts with knowledge from your databases: class RAGHook(PreHook): async def on_run(self, session, agent, requests): prompt = requests[0].prompt # Search your knowledge base context = await search_kno

IADev
Interesse
dev.to

Designing offline-first edge sync in physical access control systems: How are you handling cache invalidation?

Hi DEV community, We are currently architecting an edge-to-cloud synchronization layer for a high-throughput physical security deployment (managing turnstiles, biometric speed gates, and smart card readers across several multi-tenant commercial facilities). As part of engineering our centralized access control system backend, we face a classic distributed systems challenge: Strict sub-200ms latency SLAs at the physical gate vs. reliable policy synchronization across edge nodes during network partitions. Our Current Edge Architecture Edge Gateway: Industrial fanless PC running an embedded Go service. Controller Interface: Interfacing with multi-drop door/barrier controllers over OSDP v2 / RS-485. Local Datastore: Embedded SQLite/LMDB database caching active user credential hashes, schedule rules, and access control lists (ACLs). Sync Broker: MQTT over TLS for bi-directional event streaming and policy updates back to the cloud.

InfraDev
Interesse
dev.to

Terraform 1.16 adds destroy-time Actions and lets child modules own their imports

I once kept a shell script called pre-destroy.sh in a repo for far longer than I'd like to admit. It took a final backup, poked an external inventory system, and only then let the pipeline run terraform destroy. Everyone on the team was a little scared of it, and nobody ever fully trusted it. Terraform 1.16 lets a lot of that logic move into the configuration, where the plan can see it. HashiCorp's release post covers two headline changes. Actions can now fire on before_destroy and after_destroy events. Import blocks can also live inside child modules, so the root module no longer has to own every import. The release post opens with the cases you'd expect: taking a final backup, deregistering an asset, or cleaning up an external system before the infrastructure goes away. You attach an Action to a resource through action_trigger in its lifecycle block and list the destroy event in events. The shape from HashiCorp's example looks like this: action "example_cleanup" "archive" { config { resource_id = caller.id } } resource "example_service" "payments" { name = "payments" lifecycle { action_trigger { events = [before_destroy] actions = [action.example_cleanup.archive] } } } For anyone who has wired up cleanup steps in a pipeline, this is the nice part. The cleanup step sits next to the resource it belongs to, it shows up at plan time, and you stop relying on whoever runs the destroy job to remember the wrapper script. The second change is quieter, and I think more people will feel it day to day. Until now, an import block could target a resource inside a child module, but the block itself had to sit in the root module. HashiCorp calls that "an awkward exception" for modules that are supposed to hide their implementation details. In 1.16 the module can carry its own import: variable "existing_bucket_name" { type = string } resource "aws_s3_bucket" "this" { bucket = var.existing_bucket_name } import { to = aws_s3_bucket.this id = var.existing_bucket_name } The consumer p

InfraDev
Interesse
dev.to

Cloudflare Is Changing How AI Agents Access the Web in 2026

AI agents are getting better at using the web. They can search for information, read documentation, compare products, research topics, and collect data for users. But there is a problem: More websites are deciding which kinds of AI traffic they want to allow. Cloudflare is one of the biggest pieces of infrastructure between websites and their visitors. So when Cloudflare changes how AI traffic is handled, it matters to anyone building software that fetches web pages. In July 2026, Cloudflare introduced separate controls for three types of AI-related traffic: Search Agent Training Then, in September 2026, Cloudflare changed the default settings for new domains. What changed? July 1, 2026 Search Agent Training Website owners can decide how each type of traffic should be handled. They can allow it, block it, or block it only on pages that display ads. September 15, 2026 Traffic type New default Website owners can change these settings. Why does this matter for AI agents? The agent may need to open several web pages, read them, and return the relevant information. Not every Cloudflare site will block AI agents This is important. The website owner decides what happens. Allow Search traffic Allow Agent traffic Allow Training traffic Block one of them Block traffic only on pages with ads Block traffic everywhere So a Cloudflare-protected website does not automatically mean an AI agent cannot access it. What about Googlebot and other mixed crawlers? Cloudflare has also added a Disallow AI Training option. What happens when your agent gets blocked? 403 Forbidden A Cloudflare challenge A rate-limit response Another error from the website And you cannot always tell from the response whether the website intentionally blocked AI traffic or whether something else went wrong. For example, in Spicrawl, an upstream bot challenge can appear as: How should developers handle this? 1. Check the site's rules Look at: robots.txt Terms of service API documentation Other access policies The

IA
Interesse
dev.to

How to generate an EPC payment QR code (GiroCode) for your invoices

If you send invoices to customers in Germany, Austria, the Netherlands or Belgium, you have probably seen a small QR code labelled "GiroCode" or "Zahlen mit Code". The customer scans it in their banking app, and IBAN, recipient, amount and reference are filled in automatically. No typos in the IBAN, no missing reference. The format behind it is the EPC QR code, defined by the European Payments Council in the guideline EPC069-12. It is plain text, so you can generate it with any QR library. Here is what goes into it and where it usually breaks. The QR code contains up to 12 lines, separated by a line feed (\n): Line Content Example Notes 1 Service tag BCD always BCD 2 Version 002 002 makes the BIC optional within the EEA 3 Character set 1 1 = UTF-8 4 Identification SCT SEPA Credit Transfer 5 BIC (empty) optional with version 002 6 Beneficiary name Muster GmbH max. 70 characters 7 IBAN DE89370400440532013000 no spaces 8 Amount EUR149.90 EUR + amount with a dot, max. 999999999.99 9 Purpose code (empty) optional, 4 characters 10 Structured reference (empty) ISO 11649 creditor reference (RF…) 11 Unstructured reference Rechnung 2026-041 max. 140 characters 12 Info to the payer (empty) optional, max. 70 characters Two rules that are easy to miss: Use either line 10 or line 11, never both. If you have no RF creditor reference, leave line 10 empty and put the invoice number into line 11. The whole payload must not exceed 331 bytes. With UTF-8, umlauts count as two bytes. Trailing empty lines may be omitted, so a minimal code ends after line 11. function epcPayload({ name, iban, amount, reference, bic = "" }) { const cleanIban = iban.replace(/\s+/g, "").toUpperCase(); if (!/^[A-Z]{2}\d{2}[A-Z0-9]{11,30}$/.test(cleanIban)) { throw new Error("Invalid IBAN format"); } if (name.length > 70) throw new Error("Name longer than 70 characters"); if (amount 999999999.99) throw new Error("Amount out of range"); const lines = [ "BCD", "002", "1", "SCT", bic, name, cleanIban, "EUR" + amou

Dev
Interesse
Phoronix

Meta Developing Compressed RAM "CRAM" For Linux: Better Than ZRAM & Zswap

With today's memory shortages, high prices, and ever increasing memory capacity needs, Meta engineers have been working on Compressed RAM "CRAM" for Linux. This hardware-offloaded compression still allows cacheline/byte access to compressed memory and in turn a better implementation than the likes of ZRAM and Zswap. Very promising is that there is near-native performance to raw DRAM speeds with CRAM...

InfraLinux
Interesse
dev.to

A preview URL can outrank your real domain: keeping Cloudflare previews out of Google

My site is small — five pages of static HTML served through a Cloudflare Worker. The thing that worried me most in the first month wasn't the content. It was the preview URLs. The moment you deploy to Cloudflare, you get extra hostnames for free: a workers.dev address, plus whatever preview or staging hostnames your setup generates. They serve exactly the same assets as production — same HTML, same CSS, same everything. If any one of those hostnames gets crawled, you now have your entire site indexed under a domain you don't control, competing with your real domain for the same queries. And deleting the hostname later does not clean it up. The indexed URLs stay. Ship a robots.txt in your build. It gets overwritten on the next build, and it's one file — it physically cannot say different things to different hostnames. Put a noindex meta tag on every page. Preview and production serve identical HTML, so this noindexes production too. And it only takes effect after a crawl. Password-protect the preview. Works, but it breaks your own testing and anything you want to hand to a collaborator. The idea is simple. robots.txt is never a file in the build. The Worker intercepts that one path and returns a body based on the hostname that was actually requested. Keep an explicit list of your production hostnames — apex, www, anything else you genuinely serve. If the request host is on that list, return the normal allow-everything file with the sitemap line pointing at production. If it is anything else, return a file that disallows everything. Two details matter more than they look. It's an allow-list, not a blocklist. New preview hostnames appear without you doing anything. A blocklist is always one deploy behind. An allow-list fails closed. The sitemap line is hard-coded to production. Don't build it from the request host. Otherwise your preview's robots.txt advertises the preview's sitemap — which is exactly the URL you were trying to keep out. Open the robots.txt of your pro

InfraDev
Interesse