Skip to content

Fix Vercel build: add missing frontend/lib/api.ts and fix gitignore#3

Merged
PSchmitz-Valckenberg merged 1 commit into
mainfrom
feat/fix-missing-lib
May 9, 2026
Merged

Fix Vercel build: add missing frontend/lib/api.ts and fix gitignore#3
PSchmitz-Valckenberg merged 1 commit into
mainfrom
feat/fix-missing-lib

Conversation

@PSchmitz-Valckenberg

Copy link
Copy Markdown
Owner

Problem

Vercel build was failing with Module not found: Can't resolve '@/lib/api' because frontend/lib/api.ts was never committed to git.

Root cause: the root .gitignore had a bare lib/ pattern (intended for Python venv artifacts) which also matched frontend/lib/. The file existed locally but not in the repo.

Fix

  • Changed lib/ to /lib/ in root .gitignore so it only matches the repo root, not subdirectories
  • Added the missing frontend/lib/api.ts file to git

Copilot AI review requested due to automatic review settings May 9, 2026 19:15
@vercel

vercel Bot commented May 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
monalexdictionary Ready Ready Preview, Comment May 9, 2026 7:16pm

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

Fixes the Vercel build failure caused by a missing @/lib/api module by committing the previously ignored frontend/lib/api.ts and tightening the root .gitignore rule that unintentionally ignored frontend/lib/.

Changes:

  • Add frontend/lib/api.ts (typed API client for search, AI explain, and word-of-day).
  • Update root .gitignore from lib/ to /lib/ to only ignore the repo-root lib/ directory.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
frontend/lib/api.ts Adds the missing frontend API module used by app/pages and client components.
.gitignore Anchors the lib/ ignore rule to avoid ignoring frontend/lib/.

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

@PSchmitz-Valckenberg PSchmitz-Valckenberg merged commit 3bc600e into main May 9, 2026
7 checks passed
@PSchmitz-Valckenberg PSchmitz-Valckenberg deleted the feat/fix-missing-lib branch May 9, 2026 19:19
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.

2 participants