Skip to content

Support frontend/backend separation deployment - #7

Merged
ZhuYuxuan9302 merged 3 commits into
masterfrom
divide
Jul 8, 2026
Merged

Support frontend/backend separation deployment#7
ZhuYuxuan9302 merged 3 commits into
masterfrom
divide

Conversation

@ZhuYuxuan9302

Copy link
Copy Markdown
Member

Add support for separate frontend/backend deployment while maintaining backward compatibility with unified deployment.

Key changes:

  • Add CORS middleware and cross-domain Cookie handling via FRONTEND_URL env var
  • Separate Docker images: Dockerfile.backend (backend only) and Dockerfile.frontend (Nginx-hosted frontend)
  • Add VITE_API_BASE_URL support for frontend API endpoint configuration
  • Add Nginx configuration template for frontend SPA routing and /api reverse proxy
  • Update documentation with deployment modes, environment variables, and Docker examples
  • Add frontend .env.example for environment variable reference

Add support for separate frontend/backend deployment while maintaining backward compatibility with unified deployment.

Key changes:
- Add CORS middleware and cross-domain Cookie handling via FRONTEND_URL env var
- Separate Docker images: Dockerfile.backend (backend only) and Dockerfile.frontend (Nginx-hosted frontend)
- Add VITE_API_BASE_URL support for frontend API endpoint configuration
- Add Nginx configuration template for frontend SPA routing and /api reverse proxy
- Update documentation with deployment modes, environment variables, and Docker examples
- Add frontend .env.example for environment variable reference
@MCJPG-Agent

Copy link
Copy Markdown

🎉 感谢 @ZhuYuxuan9302 提交 Pull Request!
🎉 Thanks @ZhuYuxuan9302 for submitting the Pull Request!

我们会尽快审查您的代码。在此期间,请确保:
We will review your code as soon as possible. In the meantime, please ensure:

  • ✅ 所有测试通过 / All tests pass
  • ✅ 代码符合项目规范 / Code follows project conventions
  • ✅ 已添加必要的文档 / Necessary documentation is added

🤖 我们的 MCJPG Agent 将自动对您的代码进行初步审查。
🤖 Our MCJPG Agent will automatically conduct an initial review of your code.

如有代码辅助需求,请在评论区 @claude 进行请求。
If you need code assistance, please @claude in the comments.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 8, 2026

Copy link
Copy Markdown

Deploying servereditor with  Cloudflare Pages  Cloudflare Pages

Latest commit: 424d28f
Status: ✅  Deploy successful!
Preview URL: https://c65a777f.servereditor.pages.dev

View logs

@MCJPG-Agent

Copy link
Copy Markdown

Claude Code is working…

I'll analyze this and get back to you.

View job run

@ZhuYuxuan9302
ZhuYuxuan9302 merged commit c3f3059 into master Jul 8, 2026
3 of 4 checks passed
@ZhuYuxuan9302
ZhuYuxuan9302 deleted the divide branch July 8, 2026 07:17
@MCJPG-Agent

Copy link
Copy Markdown

❤️ 感谢来自 @ZhuYuxuan9302 的 PR ❤️
❤️ Great PR from @ZhuYuxuan9302 ❤️

如果您也对 MCJPG 组织的开发工作感兴趣,欢迎联系并加入我们!
If you're also interested in the development work of the MCJPG organization, feel free to reach out and join us!

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