Skip to content

Add Vercel deployment configuration for Angular frontend#1

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/deploy-to-vercel
Draft

Add Vercel deployment configuration for Angular frontend#1
Copilot wants to merge 3 commits intomainfrom
copilot/deploy-to-vercel

Conversation

Copy link
Copy Markdown

Copilot AI commented Dec 13, 2025

The repository needed configuration to deploy the Angular frontend to Vercel.

Changes

Vercel Configuration

  • vercel.json - Build command, output directory, and SPA routing rewrites
  • .vercelignore - Excludes Docker files, API/DB directories, and test files

Environment-based API Configuration

  • Created app/src/environments/environment.ts (dev) and environment.prod.ts (prod)
  • Updated CourseService to use environment.apiUrl instead of hardcoded localhost
  • Configured angular.json file replacements for production builds

Documentation

  • Added deployment instructions to README
  • Documented requirement for separate PHP API and MySQL hosting

Example

// Before
export class CourseService {
  url = 'http://localhost/';
}

// After
import { environment } from '../../environments/environment';

export class CourseService {
  url = environment.apiUrl;
}

Notes

Vercel hosts static sites and serverless functions only. The PHP backend (/api) and MySQL database require separate hosting. Update environment.prod.ts with the actual API URL before deployment.

Original prompt

Deploy no vercel. O qu efalta?


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI self-assigned this Dec 13, 2025
@vercel
Copy link
Copy Markdown

vercel bot commented Dec 13, 2025

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

Project Deployment Review Updated (UTC)
php-angular-mysql-docker Ready Ready Preview, Comment Dec 13, 2025 9:47pm

Co-authored-by: queite <92694171+queite@users.noreply.github.com>
Co-authored-by: queite <92694171+queite@users.noreply.github.com>
Copilot AI changed the title [WIP] Deploy application to Vercel Add Vercel deployment configuration for Angular frontend Dec 13, 2025
Copilot AI requested a review from queite December 13, 2025 21:50
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