Skip to content

Commit 4ac523e

Browse files
authored
Merge pull request #1131 from trycompai/main
[comp] Production Deploy
2 parents be8ffca + f2cf5fb commit 4ac523e

198 files changed

Lines changed: 4029 additions & 12115 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
# Dependencies
2+
node_modules
3+
*/node_modules
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
bun.lockb*
8+
9+
# Testing
10+
coverage
11+
test-results
12+
.nyc_output
13+
14+
# Next.js
15+
.next/
16+
*/.next/
17+
out/
18+
*/out/
19+
20+
# Nuxt.js
21+
.nuxt
22+
dist
23+
24+
# Gatsby files
25+
.cache/
26+
public
27+
28+
# Vue.js
29+
dist/
30+
31+
# Storybook build outputs
32+
.out
33+
.storybook-out
34+
35+
# Temporary folders
36+
tmp/
37+
temp/
38+
39+
# Logs
40+
logs
41+
*.log
42+
43+
# Runtime data
44+
pids
45+
*.pid
46+
*.seed
47+
*.pid.lock
48+
49+
# Coverage directory used by tools like istanbul
50+
coverage/
51+
*.lcov
52+
53+
# nyc test coverage
54+
.nyc_output
55+
56+
# Grunt intermediate storage
57+
.grunt
58+
59+
# Bower dependency directory
60+
bower_components
61+
62+
# node-waf configuration
63+
.lock-wscript
64+
65+
# Compiled binary addons
66+
build/Release
67+
68+
# Dependency directories
69+
jspm_packages/
70+
71+
# TypeScript cache
72+
*.tsbuildinfo
73+
74+
# Optional npm cache directory
75+
.npm
76+
77+
# Optional eslint cache
78+
.eslintcache
79+
80+
# Optional REPL history
81+
.node_repl_history
82+
83+
# Output of 'npm pack'
84+
*.tgz
85+
86+
# Yarn Integrity file
87+
.yarn-integrity
88+
89+
# dotenv environment variables files
90+
.env
91+
.env.test
92+
.env.local
93+
.env.development.local
94+
.env.test.local
95+
.env.production.local
96+
97+
# Parcel-bundler cache
98+
.cache
99+
.parcel-cache
100+
101+
# Next.js build output
102+
.next
103+
104+
# Nuxt.js build / generate output
105+
.nuxt
106+
dist
107+
108+
# Gatsby files
109+
.cache/
110+
public
111+
112+
# Vuepress build output
113+
.vuepress/dist
114+
115+
# Serverless directories
116+
.serverless/
117+
118+
# FuseBox cache
119+
.fusebox/
120+
121+
# DynamoDB Local files
122+
.dynamodb/
123+
124+
# TernJS port file
125+
.tern-port
126+
127+
# Stores VSCode versions used for testing VSCode extensions
128+
.vscode-test
129+
130+
# VS Code
131+
.vscode
132+
133+
# MacOS
134+
.DS_Store
135+
136+
# Git
137+
.git
138+
.gitignore
139+
README.md
140+
141+
# Docker
142+
Dockerfile*
143+
docker-compose*
144+
.dockerignore
145+
146+
# IDE files
147+
*.swp
148+
*.swo
149+
*~
150+
151+
# OS generated files
152+
Thumbs.db
153+
ehthumbs.db
154+
155+
# E2E test files
156+
apps/app/e2e/
157+
apps/app/test-results/
158+
playwright-report/
159+
test-results/
160+
161+
# Turbo
162+
.turbo
163+
*/.turbo
164+
165+
# Build artifacts and caches
166+
*/dist/
167+
**/dist/
168+
**/build/
169+
**/.cache/
170+
**/coverage/
171+
**/.nyc_output/
172+
173+
# Platform specific binaries
174+
**/bin/
175+
**/*.dylib*
176+
**/*.node
177+
**/*.pack

.env.example

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Database Configuration
2+
DATABASE_URL=postgres://postgres:postgres@db:5432/comp
3+
4+
# Authentication
5+
AUTH_SECRET=your-secret-auth-key-here-min-32-chars
6+
AUTH_GOOGLE_ID=your-google-oauth-client-id
7+
AUTH_GOOGLE_SECRET=your-google-oauth-client-secret
8+
AUTH_GITHUB_ID=your-github-oauth-app-id
9+
AUTH_GITHUB_SECRET=your-github-oauth-app-secret
10+
11+
# Email Service
12+
RESEND_API_KEY=re_your_resend_api_key_here
13+
14+
# Application URLs
15+
NEXT_PUBLIC_PORTAL_URL=http://localhost:3001
16+
NEXT_PUBLIC_VERCEL_URL=http://localhost:3000
17+
18+
# Security
19+
REVALIDATION_SECRET=your-revalidation-secret-here
20+
21+
# Optional - Redis/Upstash (for caching)
22+
UPSTASH_REDIS_REST_URL=your-upstash-redis-url
23+
UPSTASH_REDIS_REST_TOKEN=your-upstash-redis-token
24+
25+
# Optional - AWS S3 (for file uploads)
26+
APP_AWS_ACCESS_KEY_ID=your-aws-access-key
27+
APP_AWS_SECRET_ACCESS_KEY=your-aws-secret-key
28+
APP_AWS_REGION=us-east-1
29+
APP_AWS_BUCKET_NAME=your-s3-bucket-name
30+
31+
# Optional - OpenAI
32+
OPENAI_API_KEY=sk-your-openai-api-key
33+
34+
# Optional - Analytics
35+
NEXT_PUBLIC_POSTHOG_KEY=your-posthog-key
36+
NEXT_PUBLIC_POSTHOG_HOST=https://app.posthog.com
37+
38+
# Optional - External Services
39+
TRIGGER_SECRET_KEY=your-trigger-secret
40+
TRIGGER_API_KEY=your-trigger-api-key
41+
GROQ_API_KEY=your-groq-api-key
42+
FIRECRAWL_API_KEY=your-firecrawl-key
43+
44+
# Environment
45+
NODE_ENV=production

.github/BRANCH_PROTECTION.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,11 @@ Go to **Settings → Branches** in your GitHub repository and add a branch prote
1616
### Must Pass Before Merging:
1717

1818
1. **Quick Checks** (Quick Tests)
19-
2019
- Fast smoke tests that run on every PR
2120
- Includes type checking, linting, and critical middleware tests
2221
- Should complete in < 5 minutes
2322

2423
2. **Unit Tests** (Unit Tests / app)
25-
2624
- Vitest unit tests for the main app
2725
- Tests business logic, utilities, and components
2826

@@ -103,9 +101,7 @@ Protect matching branches:
103101
Status checks that are required:
104102
- Quick Checks
105103
- Unit Tests (app)
106-
- Unit Tests (framework-editor)
107104
- Unit Tests (portal)
108-
- Unit Tests (trust)
109105
- E2E Tests - chromium
110106
- E2E Tests - firefox
111107
- E2E Tests - webkit

.github/TESTS_README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ See [BRANCH_PROTECTION.md](BRANCH_PROTECTION.md) for setup instructions.
6262
## Workflow Files
6363

6464
- **Testing**
65-
6665
- `test-quick.yml` - Type checking, linting, smoke tests
6766
- `unit-tests.yml` - Vitest tests for all apps
6867
- `e2e-tests.yml` - Playwright tests (multi-browser)

.github/workflows/release.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,19 @@ jobs:
5151
- name: Install dependencies
5252
run: bun install --frozen-lockfile # Use --frozen-lockfile in CI
5353

54+
- name: Build packages
55+
run: |
56+
echo "🔨 Building packages before release..."
57+
bun run -F @trycompai/db build
58+
bun run -F @trycompai/email build
59+
bun run -F @trycompai/kv build
60+
bun run -F @trycompai/ui build
61+
bun run -F @trycompai/analytics build
62+
5463
- name: Release
5564
env:
5665
GITHUB_TOKEN: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
57-
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }} # Uncomment if publishing to npm
66+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} # Enable npm publishing
5867
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
5968
HUSKY: 0 # Skip husky hooks in CI
6069
run: npx semantic-release
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
strategy:
3131
matrix:
32-
app: [app, framework-editor, portal, trust]
32+
app: [app, portal]
3333

3434
steps:
3535
- name: Checkout

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,6 @@ playwright-report/
7676
playwright/.cache/
7777
debug-setup-page.png
7878

79-
.playground/
79+
.playground/
80+
81+
packages/*/dist

0 commit comments

Comments
 (0)