All Patches

SvelteKit: adapter-auto not selecting Netlify reliably

Symptom Build warns Could not detect a supported production environment. Patch TARGET FILE: svelte.config.js FIND: import adapter from '@sveltejs/adapter-auto'; REPLACE WITH:...

sveltekitnetlifyadapterbuild
medium

Postgres: relation does not exist after deploy

Symptom Runtime errors such as relation \"table_name\" does not exist. Patch TARGET FILE: deployment runbook FIND: (no migration step) REPLACE WITH: Apply schema SQL...

postgresmigrationdeployschema
high

Next.js: missing server chunk

Symptom Server crashes with missing chunk file in .next. Patch ACTION: delete .next and rebuild rm -rf .next npm run build

nextjsbuild
high

Netlify: vite not found (exit 127)

Symptom Build fails with sh: 1: vite: not found. Patch TARGET FILE: package.json FIND: "build": "vite build" REPLACE WITH: "build": "vite...

netlifybuildvitedeps
low

Netlify: ERR_PNPM_OUTDATED_LOCKFILE in CI

Symptom Netlify build fails during install with ERR_PNPM_OUTDATED_LOCKFILE. Patch TARGET FILE: pnpm-lock.yaml FIND: (package missing from lockfile) REPLACE WITH: Regenerate...

netlifypnpmcilockfile
low

Next.js on Netlify: plugin not configured

Symptom Next app builds locally but Netlify runtime/SSR fails. Patch TARGET FILE: netlify.toml FIND: (no next plugin) REPLACE WITH: [[plugins]] package =...

nextjsnetlifybuildplugin
medium

Netlify Functions: Cannot find module 'ejs'

Symptom Runtime fails with Cannot find module 'ejs' inside function bundle. Patch TARGET FILE: netlify.toml FIND: [functions] node_bundler = "esbuild" REPLACE WITH:...

netlifyfunctionsejsbundling
medium

Netlify: API routes not reaching serverless function

Symptom Frontend calls /api/* but requests return 404. Patch TARGET FILE: netlify.toml FIND: (no API redirect) REPLACE WITH: [[redirects]] from = "/api/*" to =...

netlifyredirectsfunctionsapi
low

Neon + Netlify: DB URL fallback pattern

Symptom App works locally but DB is unavailable on Netlify. Patch TARGET FILE: server db init file FIND: const url = process.env.DATABASE_URL; REPLACE WITH: const url =...

postgresneonnetlifyenv
low

Eleventy: custom filters not loaded in CI build

Symptom Build errors like filter not found: date. Patch TARGET FILE: package.json scripts FIND: "build": "... && eleventy" REPLACE WITH:...

eleventynunjuckscibuild
low

Astro static site with Netlify functions API routing

Symptom Static Astro UI loads, but API-backed features fail. Patch TARGET FILE: netlify.toml FIND: (no functions dir / no api redirect) REPLACE WITH: [functions] directory =...

astronetlifyfunctionsapi
low