Skip to content

Commit edf991e

Browse files
authored
ci: configura deploy automatizado do frontend via Vercel
Este merge implementa o sistema de CI/CD para o frontend do projeto Linkando.dev via GitHub Actions + Vercel, adaptado ao monorepo. ### Alterações principais: - Adição do workflow `.github/workflows/deploy.yml` - Adição de `vercel.json` para definir `linkando-frontend/` como raiz - Organização da documentação (`.env.example`, `CONTRIBUTING.md`, `CODE_OF_CONDUCT.md`) - Ajustes em páginas dinâmicas (`[slug]`, `verify-password`) para compatibilidade com Next.js 15 - Correções de tipagem e build ✅ O projeto agora pode ser deployado com push em `main` ou `feat/**` automaticamente. 🎉 PR pronta para merge!
2 parents b590ce3 + 2ebc058 commit edf991e

4 files changed

Lines changed: 50 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy via Vercel
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- feat/**
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout código
14+
uses: actions/checkout@v3
15+
16+
- name: Instalar dependências
17+
run: npm install
18+
working-directory: linkando-frontend
19+
20+
- name: Build do projeto
21+
run: npm run build
22+
working-directory: linkando-frontend
23+
24+
- name: Deploy na Vercel
25+
uses: amondnet/vercel-action@v25
26+
with:
27+
vercel-token: ${{ secrets.VERCEL_TOKEN }}
28+
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
29+
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
30+
vercel-args: '--prod'
31+
working-directory: ./linkando-frontend

linkando-frontend/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# teste

linkando-frontend/next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const nextConfig = {
44
ignoreBuildErrors: true,
55
},
66
experimental: {
7-
serverActions: true,
7+
serverActions: {},
88
},
99
images: {
1010
remotePatterns: [

next.config.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/** @type {import('next').NextConfig} */
2+
const nextConfig = {
3+
reactStrictMode: true,
4+
experimental: {
5+
serverActions: true,
6+
},
7+
images: {
8+
remotePatterns: [
9+
{
10+
protocol: 'https',
11+
hostname: '**',
12+
},
13+
],
14+
},
15+
};
16+
17+
export default nextConfig;

0 commit comments

Comments
 (0)