cfug / cfug/flutter.cn

flutter.cn 站务更新

Open
#441 13 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

S: Team/Infra
Dominant language
Dart
Stars
568
Forks
361
Avg merge
2d 22h
Merged PRs (30d)
2

Description

可以优化的点应该是:
如果 404 了,去 flutter.dev 获取内容,然后获得上游网站的 301 地址,替换域名跳转到 flutter.cn 相应的地址。
核心的代码应该是

proxy_redirect          https://flutte.dev/     https://flutter.cn;

比如 https://flutter.dev/get-started
这个地址会跳转到 https://flutter.dev/docs/get-started/install
https://flutter.cn/get-started 将只会得到 404

原因是 flutter.dev 是部署到 firebase hosting 的,而其可以进行自定义的 301 跳转,在 flutter.cn 的 infra 里并不存在这个。

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the flutter.cn infrastructure configuration that handles missing paths and compare its behavior with the 301 redirects from flutter.dev. Verify the examples for /get-started and other 404 paths, then confirm that upstream redirects resolve to the corresponding flutter.cn URL without redirect loops.

Written by the indexing model from the issue text.

Assessment

Tech stack
flutter
Domain
infrastructure, web-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.