Mert Koseoglu
1dbdb88717
perf: reduce Vercel costs — 12 optimizations across MCP endpoint, prompts.json, and infra
...
Addresses $6,478/month Vercel bill with 12 targeted fixes based on forensic
bill analysis and 7-expert review. See #1085 for full analysis.
MCP endpoint (src/pages/api/mcp.ts):
- Fix GetPromptRequestSchema P0 full table scan (findMany→findFirst)
- Remove all JSON pretty-printing (13 occurrences, ~30% payload reduction)
- Add Cache-Control headers to GET discovery endpoint
- Set tools.listChanged=false to prevent client polling
- Add 1MB body size limit to parseBody (DoS protection)
- Make elicitation opt-in via fill_variables param (saves 10s CPU/request)
- Fix timer leak in elicitation setTimeout
- Cap search content at 1,000 chars (contentPreview)
- Remove structuredFormat from search results
- Dynamic import for improve_prompt (reduces cold start)
- Optimize search_skills to return fileNames only
prompts.json:
- Add pagination (?page=&limit=) with backward compatibility
- Add ETag support for 304 Not-Modified responses
- Truncate content to 500-char preview by default
Infrastructure:
- Remove Sentry tunnelRoute (was proxying all browser events through edge)
- Add slug + composite database indexes for MCP query patterns
Closes #1085
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-03-19 21:04:34 +03:00
Fatih Kadir Akın
cd1715e703
chore(env): update EZOIC_ENABLED to NEXT_PUBLIC_EZOIC_ENABLED in environment variables
2026-03-19 18:21:51 +03:00
Fatih Kadir Akın
d9fe66299a
feat(prompts): enable Ezoic ads based on environment variable
2026-03-19 18:11:52 +03:00
Fatih Kadir Akın
e1741b528e
feat(prompts): add Ezoic ad placeholder to prompt page
2026-03-19 17:38:11 +03:00
Fatih Kadir Akın
68bf2e9be8
chore(widgets): update maxCount to 20 in ezoicWidget
2026-03-19 17:30:41 +03:00
Fatih Kadir Akın
266ffe9b9e
Merge pull request #1082 from ogzgl/fix/reduce-vercel-costs
2026-03-19 12:26:59 +00:00
Oğuz Gül
a46ef57a60
fix: reduce vercel costs
2026-03-19 15:16:07 +03:00
Fatih Kadir Akın
6505f7601f
fix(page.tsx): update JSON-LD serialization to escape special characters
2026-03-19 10:29:41 +03:00
Fatih Kadir Akın
9684a58dbc
fix(seo): update structured data script to escape special characters
2026-03-19 10:28:58 +03:00
gokbeyinac
f50c843cb7
Remove prompt: Kickstart Prompt for UX & UI Design
2026-03-19 03:54:46 +00:00
mal4thia@gmail.com
7f34e89107
Add prompt: Professional photo restoration expert
2026-03-19 03:54:46 +00:00
priyalvijay108@gmail.com
4315ccba98
Add prompt: Review the social media content
2026-03-19 03:54:46 +00:00
fede.gazzelloni@gmail.com
6759e17f1c
Update prompt: Article Summarizer
2026-03-19 03:54:45 +00:00
debashis.sarker@gmail.com
b1d591c946
Update prompt: The Technical Co-Founder: Building Real Products Together
2026-03-19 03:54:45 +00:00
aymanrabeemac@gmail.com
fad9ea6a5d
Update prompt: Code Review Specialist
2026-03-19 03:54:45 +00:00
nolanneff
5e5d20b705
Update prompt: Code Review Specialist 2
2026-03-19 03:54:44 +00:00
thanos0000@gmail.com
fa5e180371
Update prompt: Question Quality Lab Game
2026-03-19 03:54:44 +00:00
ersinkoc
ba3a120f6d
Update prompt: Echoes of the Rust Age
2026-03-19 03:54:44 +00:00
cnwdy888@gmail.com
8c54e612ac
Update prompt: Interview Preparation Coach
2026-03-19 03:54:43 +00:00
guangzhongzhang978@gmail.com
239119a12e
Update prompt: Virtual Doctor
2026-03-19 03:54:43 +00:00
f
34e529cc70
Update prompt: Code Review Assistant
2026-03-19 03:54:42 +00:00
devisasari
e2a494e39d
Update prompt: Astrologer
2026-03-19 03:54:42 +00:00
iuzn
cee1e2d521
Update prompt: Prompt Generator
2026-03-19 03:54:42 +00:00
Fatih Kadir Akın
edf9cded4e
style(css): Remove unnecessary max-width property from ezoic ad content
2026-03-18 18:21:29 +03:00
Fatih Kadir Akın
f6dbe4c44c
fix(ads): Fix logic for checking ad content presence in Ezoic components
2026-03-18 18:19:42 +03:00
Fatih Kadir Akın
0b207d2157
style(components/ads): update ezoic ad container styles
2026-03-18 18:06:33 +03:00
Fatih Kadir Akın
5686ff9e75
style(css): update Ezoic ad styling for centering and constraining
2026-03-18 18:05:17 +03:00
Fatih Kadir Akın
ce9ff6fad6
chore(i18n): update ad translations in multiple languages
2026-03-18 17:51:23 +03:00
Fatih Kadir Akın
c3450135a5
style(components/ads): update ezoic ad container styling
2026-03-18 17:44:07 +03:00
Fatih Kadir Akın
f96fce7ce0
fix(components): update background music URL for kids layout
2026-03-18 15:24:15 +03:00
Fatih Kadir Akın
f572bbfaa9
fix(ui): update video source URL for homepage
2026-03-18 15:21:18 +03:00
Fatih Kadir Akın
921cdd51be
feat(api): add feature flag check for MCP in API handler
2026-03-18 15:07:53 +03:00
Fatih Kadir Akın
d34bf90637
chore(prompts): update AI and MCP settings to disable them
2026-03-18 15:02:26 +03:00
Fatih Kadir Akın
53f07670d5
feat(ads): add Ezoic script handling and placeholders
2026-03-18 13:22:46 +03:00
Fatih Kadir Akın
bd8bd90ad9
refactor(components): improve widget injection logic for prompt list
2026-03-18 11:50:33 +03:00
Fatih Kadir Akın
4d1236eacb
style(components/ads): update EzoicPlaceholder styling
2026-03-18 11:35:30 +03:00
Fatih Kadir Akın
be06ac6a14
style(css): Add styling for Ezoic privacy policy container
2026-03-18 11:32:29 +03:00
gokbeyinac
ce23b834d0
Remove prompt: Kickstart Prompt for UX & UI Design
2026-03-18 03:55:04 +00:00
hakimjiwan23@gmail.com
9b80161f41
Add prompt: Neon Logo Design for Streaming Platform
2026-03-18 03:55:04 +00:00
danjumame0@gmail.com
98695ca54a
Add prompt: Extract a Writing Outline from Scientific Content
2026-03-18 03:55:04 +00:00
xiaoyucunx
c2252e451b
Update prompt: Code Review Specialist
2026-03-18 03:55:03 +00:00
cperalesg@gmail.com
a7b5a04a2f
Update prompt: Prompt Generator
2026-03-18 03:55:03 +00:00
panda667
9eb8ee0d2b
Update prompt: Astrologer
2026-03-18 03:55:03 +00:00
joembolinas
7362ae4f54
Update prompt: The Technical Co-Founder: Building Real Products Together
2026-03-18 03:55:02 +00:00
aitank2020@gmail.com
2bd699f3b5
Update prompt: Echoes of the Rust Age
2026-03-18 03:55:02 +00:00
dragoy18@gmail.com
9b6dc5b26e
Update prompt: Code Review Specialist 2
2026-03-18 03:55:02 +00:00
lior1976@gmail.com
a607103b44
Update prompt: Article Summarizer
2026-03-18 03:55:01 +00:00
beresasis@gmail.com
8b3721ec12
Update prompt: Interview Preparation Coach
2026-03-18 03:55:01 +00:00
sinansonmez
a2181dc7b2
Update prompt: Code Review Assistant
2026-03-18 03:55:01 +00:00
giorgiop
8b579d0798
Update prompt: Virtual Doctor
2026-03-18 03:55:00 +00:00