As a user I would like the ability to specify the default landing page / 404 page / magic pages
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript, node.js
調査の方向性
http-server コマンドのコマンドラインエントリーポイントから開始し、リクエストがどのように index.html と現在の 404 レスポンスを選択するかを追跡します。設定可能なランディングページと magic 404 ページのためのスイッチまたはパラメーターの動作を定義し、既定のページを使ったリクエストとカスタムページを使ったリクエストの両方を、既存のテストまたはコマンドのワークフローで検証します。
索引モデルが issue の本文から書いたものです。
説明
Steps to reproduce the issue, if applicable. Include the actual command and output and/or stack trace.
Set up http-server as normal
What did you expect to happen?
Would like to see a switch or parameter for being able to specify the default page when it is not index.html. In particular for my use case, I would like this to be an extensionless 'index' or 'home' page but being able to specify it seems like the right goal.
If the issue is a feature request, what is the motivation / use case for it?
To be able to customise the default magic file. A similar approach could be used for the magic 404 page too.
Tell us about your environment
- exact http-server version:
0.12.3
- Node version:
12.18.4
- Platform:
Windows 10 64 bit
Other information (related issues, suggestions for a fix, etc):
- 主要言語
- JavaScript
- スター
- 14.2k
- フォーク
- 1.6k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
http-party/http-server のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
http-party/http-server#982 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
http-party/http-server#977 · リアクション 2 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 8/100
http-party/http-server#980 · コメント 2 件 ·
-
New chetオープン
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
http-party/http-server#976 ·
-
Dreams local boyオープン
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
http-party/http-server#975 ·
http-party/http-server の issue をすべて見る
似ている issue
-
binding:python bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
bug needs-triage potential-regression
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
aws/aws-sdk-js-v3#8408 ·
メンテナーはふだん 1 日以内に返信
-
[v3] KeyBindingManager calls (Add/Remove) are not converted into a case-insensitive accelerator.KeyオープンBug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100