Skip to content

Remove deprecated preview server dependency#65

Merged
ootakazuhiko merged 1 commit into
mainfrom
codex/issue-55-remove-http-server
Jul 15, 2026
Merged

Remove deprecated preview server dependency#65
ootakazuhiko merged 1 commit into
mainfrom
codex/issue-55-remove-http-server

Conversation

@ootakazuhiko

Copy link
Copy Markdown
Collaborator

Refs #55\n\nRemoves unused http-server from devDependencies and replaces the local preview command with Python stdlib http.server. This removes the transitive whatwg-encoding deprecation without changing the Pages build. Faraday warning analysis remains separate and is documented in the source Issue.

Copilot AI review requested due to automatic review settings July 15, 2026 11:34
@ootakazuhiko

Copy link
Copy Markdown
Collaborator Author

@codex review

@ootakazuhiko
ootakazuhiko merged commit 4cdcd54 into main Jul 15, 2026
4 checks passed
@ootakazuhiko
ootakazuhiko deleted the codex/issue-55-remove-http-server branch July 15, 2026 11:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

本PRは、ローカルプレビュー用途で使っていた http-server(および経由して発生する whatwg-encoding のdeprecated警告)を排除し、Python標準ライブラリの http.server に置き換えることで、Pages向けビルド成果物(docs/)の生成フローを変えずに依存関係を整理する変更です。

Changes:

  • devDependencies から http-server を削除し、ローカルプレビューを Python の http.server に置換
  • package-lock.json から http-server および関連する推移依存を削除

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
package.json preview スクリプトを python3 -m http.server に変更し、http-server を削除
package-lock.json http-server と推移依存のロック情報を除去

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread package.json
"scripts": {
"build": "node scripts/build-simple.js",
"preview": "npm run build && npx http-server docs -p 8080 --silent",
"preview": "npm run build && python3 -m http.server 8080 --directory docs",

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e03f8d7bfd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread package.json
"scripts": {
"build": "node scripts/build-simple.js",
"preview": "npm run build && npx http-server docs -p 8080 --silent",
"preview": "npm run build && python3 -m http.server 8080 --directory docs",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Nodeだけでpreviewできる状態を維持してください

Node.js だけを満たす開発環境(README のクイックスタートは前提を Node.js のみにしています)や Windows/minimal Node コンテナでは python3 が存在せず、npm install && npm run preview がビルド後に起動できなくなります。python3 -m http.server --help--directory 自体は有効なことを確認しましたが、この変更は npm パッケージの依存関係から外れたランタイムを暗黙に要求するため、Node ベースのサーバを維持するか Python 要件とフォールバックを追加してください。

Useful? React with 👍 / 👎.

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