False positive unused file for Vercel vercel.ts config What happened? fallow dead-code…
- User
False positive unused file for Vercel vercel.ts config
What happened?
fallow dead-codereportsapps/web/vercel.tsas an unused file, but Vercel treatsvercel.tsas a project configuration file that is discovered and executed by convention.The file is not imported by application source, so it looks unused to a pure import graph. It should be treated as a Vercel config entrypoint.
Vercel docs say:
vercel.tsconfigures and overrides Vercel project behavior.- Unlike
vercel.json,vercel.tsexecutes at build time. - The final config must be exported as
config. - Vercel also supports
vercel.js,vercel.mjs,vercel.cjs, andvercel.mts.
The
@vercel/configpackage also treatsvercel.tsas the config input:packages/config/README.mdsays to create avercel.tsfile in the project root.packages/config/README.mdsaysvercel.tsis automatically compiled duringvercel build,vercel dev, andvercel deploy.packages/config/src/cli.tsresolvesprocess.cwd()/vercel.ts.packages/config/src/cli.tsimports the config module and collects named exports.- shows the expected shape.
- Assistant
I’ll trace the existing Vercel plugin and its fixture/test conventions, then add the config entrypoint patterns and a focused regression test.
- Assistant
There isn’t an obvious Vercel-specific module yet, so I’m checking how plugin activation, “always used” config files, and snapshot fixtures are modeled before choosing the smallest correct integration point.
- Assistant
The existing model supports exactly what this needs: a deployment plugin activated by Vercel dependencies or CLI scripts, with app-root config globs and a named-export rule for
config. I’ll include the export rule so stricter entry-export analysis also respects Vercel’s contract. - Assistant
The code is in place and formatting is clean. The focused test run is compiling the Rust workspace from a cold cache; once it completes I’ll address any integration-level behavior it exposes.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.