Skip to content
Platform engineering

A Successful Local Build Does Not Prove a Deployable System

A green local build only proves the code compiles. Deploys fail on base paths, publish directories, runtime models and redirects, so I built an agent skill that writes the build contract down first.

Get make-app-netlify-ready on npm
2 min read0 comments
Website

A passing local build next to a deployment pipeline with mismatched paths

It builds on my machine, and fails on Netlify

A build that succeeds locally can still fail on Netlify, or worse, deploy successfully and serve the wrong thing. The usual causes are not compiler errors. They are a wrong base path in a monorepo, a wrong publish directory, a static deployment of an SSR app, a missing adapter, or environment variables that only exist on one laptop.

Static sites, SPAs, hybrid apps and SSR apps each need a different routing and function contract, and Netlify adapter behaviour depends on the framework and its version. Guessing produces sites that open but are empty, or where only the home page works.

Derive the build contract before touching configuration

The make-app-netlify-ready skill for Claude Code and Codex starts by detecting the package manager, framework and runtime model, then writes down an explicit contract: where the build runs, what it produces, which directory is published, which routes need functions and how they are redirected.

Only then does it change configuration, and only minimally. A Python auditor checks netlify.toml against the contract, with codified rules for base, publish, functions, redirects and adapters.

Most deploy bugs are visible in writing before they are visible in production.

Prefer maintained adapters, never hide defects

The skill prefers maintained framework adapters over hand-written function shims, because shims silently drift when the framework changes. It preserves unrelated configuration rather than rewriting the file.

It also never adds a catch-all redirect to make a broken build look healthy. Sending every route to index.html can turn a real build failure into a site that appears to work, which is the hardest kind of bug to notice.

Local readiness is not a deployment

Dashboard settings, environment variables and actual deploys are remote actions that need explicit authority, so the skill separates a deployment-ready local state from actions it has not performed. It verifies root and nested routes and the output shape locally, and reports clearly what still has to happen on Netlify.

The package is published on npm as version 0.1.0, with installer and package verification tests.

Working through a similar challenge?

Share your context, constraints, and timeline to start a focused conversation.