
How I made loke.dev easier for AI agents to use
A practical look at the routes, APIs, DNS, and checks I added so AI agents can find and use loke.dev without guessing.
Author
Independent developer
Loke builds and documents practical web-development solutions, with a focus on reliable tooling, modern deployment, and clear technical guidance.

A practical look at the routes, APIs, DNS, and checks I added so AI agents can find and use loke.dev without guessing.

AI can help you investigate, draft, and review. The useful part starts when you turn its output into a short, checked answer you can stand behind.

A practical way to find the first server and browser difference behind a Next.js hydration error, with fixes for dates, browser APIs, HTML nesting, and extensions.

Find why a Next.js App Router page or Server Action feels slow, then fix waterfalls, duplicate queries, uncached fetches, and slow post-action refreshes.

A hands-on fix for the Next.js 16.3 ENOENT trace-file error on Vercel, with checks for Docker and self-hosted standalone builds.

Fix TypeScript 7 ESLint peer conflicts and Cjs crashes by running TypeScript 7 beside the TypeScript 6 compatibility API, with a verified npm setup.

Triage the sharp advisory in Next.js 16.2, apply a package-manager override carefully, and test the real image path before deploying on Vercel.

Fix missing dated Cloudflare Workers type entrypoints after v5, migrate app types to wrangler types, and keep generated declarations current in CI.

Node 20 is EOL. Audit package metadata, CI, Docker, and host settings, choose a supported target, then verify every runtime pin before a deploy fails.

Run Cloudflare Workers config checks in GitHub Actions, annotate exact Wrangler lines, scan monorepos, and upload SARIF when you need it.

Upgrade Astro 6 on Cloudflare safely: replace removed runtime APIs, isolate Node-only prerender work, build each environment, and test in workerd.

Catch preview deployment drift in status codes, redirects, headers, cookie attributes, canonical URLs, and robots metadata before production.

Resolve Wrangler environments, service bindings, and remote resources before starting a multi-Worker stack, then launch it in dependency order.

Use a safe Vite 7 to Vite 8 migration path: check Node support, isolate Rolldown, update optimizer config, and test HMR and production output.

Use a clear freshness contract for Next.js 16 Cache Components: decide what can be shared, set cacheLife deliberately, tag reads, and test invalidation.

A detailed Pages Router to App Router migration guide covering layouts, route structure, Server Components, caching, metadata, forms, auth, testing, and a safe rollout.

pnpm 11 moved project settings out of package.json. Migrate overrides and build policy to pnpm-workspace.yaml before CI rewrites your lockfile.