Skip to content

Harden Vercel config for first-pass Next.js deployment - #3

Merged
dubzrn merged 1 commit into
mainfrom
copilot/validate-vercel-json-configuration
May 22, 2026
Merged

Harden Vercel config for first-pass Next.js deployment#3
dubzrn merged 1 commit into
mainfrom
copilot/validate-vercel-json-configuration

Conversation

Copilot AI commented May 22, 2026

Copy link
Copy Markdown

The repository鈥檚 vercel.json was carrying framework-specific overrides that are unnecessary for a standard Next.js deployment and can drift from Vercel鈥檚 expected config shape. This change reduces the config to the minimum explicit settings needed for this app while preserving the install behavior required by the dependency graph.

  • Config shape

    • Add the official Vercel schema reference for editor/schema validation.
    • Add version: 2 so the config is explicitly interpreted as a Vercel project config.
  • Next.js deployment defaults

    • Remove buildCommand and outputDirectory overrides and defer to Vercel鈥檚 native Next.js detection/build pipeline.
    • Keep framework: "nextjs" explicit for clarity.
  • Dependency install behavior

    • Preserve the custom install command using npm install --legacy-peer-deps, which this repo still needs because a plain npm install does not resolve successfully with the current peer dependency set.
{
  "$schema": "https://openapi.vercel.sh/vercel.json",
  "version": 2,
  "framework": "nextjs",
  "installCommand": "npm install --legacy-peer-deps"
}

@dubzrn
dubzrn marked this pull request as ready for review May 22, 2026 06:52
Copilot AI review requested due to automatic review settings May 22, 2026 06:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR simplifies and hardens the repository鈥檚 vercel.json to better align with Vercel鈥檚 default Next.js deployment behavior while keeping the required custom install command for dependency resolution.

Changes:

  • Adds the official Vercel JSON schema reference for editor validation.
  • Explicitly sets version: 2 for Vercel project config interpretation.
  • Removes explicit buildCommand / outputDirectory overrides to rely on Vercel鈥檚 native Next.js pipeline, while keeping framework: "nextjs" and the legacy peer deps install command.

馃挕 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dubzrn
dubzrn merged commit 4214778 into main May 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants