Files
cloudflare_temp_email/vitepress-docs/docs/en/guide/feature/google-ads.md
Dream Hunter b337a44e62 feat: add daily request limit and refactor access control (#759)
- Add daily request limit per IP in blacklist settings (1-1,000,000/day)
- Refactor access control logic: merge blacklist and rate limit checks
- Remove RATE_LIMIT_API_DAILY_REQUESTS env var, use database config instead
- Move x-custom-auth check earlier in middleware chain
- Add comprehensive English documentation (31 new guide pages)
- Improve code structure and error handling

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-11-08 12:46:30 +08:00

774 B

Adding Google Ads to Your Website

Command Line Deployment

Modify the .env.prod file

Add the following two variables, refer to Google AdSense for specific values

VITE_GOOGLE_AD_CLIENT=ca-pub-123456
VITE_GOOGLE_AD_SLOT=123456

Then execute the following commands to redeploy pages.

pnpm build --emptyOutDir
# For first deployment, you'll be prompted to create a project, fill in production for the production branch
pnpm run deploy

GitHub Action Deployment

Modify FRONTEND_ENV, add the following two variables, refer to Google AdSense for specific values, then redeploy pages.

VITE_GOOGLE_AD_CLIENT=ca-pub-123456
VITE_GOOGLE_AD_SLOT=123456