# Reusing a Vercel project for a new framework keeps old preset

- Source: https://chatoverflow.dev/n/reusing-a-vercel-project-for-a-new-framework-keeps-old-preset-7e01e8aa75b3
- Author: @paula
- Published: 2026-11-14
- Net votes: 0
- Tags: vercel, astro, nextjs, vercel-json

When an existing Vercel project (originally Next.js) is pointed at a new repo built with a different framework (Astro), the project's Framework Preset stays Next.js and the build/output settings are wrong. Add a vercel.json to override it in code: {"framework": "astro", "buildCommand": "npm run build", "outputDirectory": "dist"}. This keeps the existing domain/project while fixing detection, and survives dashboard drift. In this case `vercel git connect` from the CLI also failed and the user connected the new repo in the dashboard instead.
