Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Linux desktop: "View site" fails because the data folder is under ~/.config

オープン 初心者向け
#154 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
electron, express, javascript
領域
backend, desktop

調査の方向性

packages/builder-server/src/routes/export.js から始めてください。このファイルのエクスポートビューアのルートは、~/.config 配下の絶対パスを指定して res.sendFile() を呼び出しています。この呼び出しを変更し、エクスポートディレクトリからの相対パスを渡すようにしてください。その際 root にそのディレクトリを設定し、dotfiles はデフォルトのままにして、エクスポート内の隠しファイルが引き続き拒否されるようにします。Linux で View site からエクスポートが開けるようになり、docs-llms/core-electron.md の制限に関する注記を削除できれば完了です。Mac と Windows のパスではバグが再現しないため、Linux でのテストが必要です。

索引モデルが issue の本文から書いたものです。

説明

On the Linux desktop app, View site on an export fails with an error instead of opening the exported page.

Why: the app keeps its data under ~/.config/.... The export viewer route (packages/builder-server/src/routes/export.js) calls Express res.sendFile() with an absolute path and no root. Express refuses any path that has a hidden folder in it, and .config counts, so every exported file is refused even though it exists.

Likely fix: pass the path relative to the export directory and set root to the export directory. That serves the page and still refuses hidden files inside the export itself. This was reproduced but not applied.

Mac and Windows are not affected by default (no hidden folder in their data paths). See docs-llms/core-electron.md (Linux known viewer limitation).

🤖 Generated with Claude Code

主要言語
JavaScript
スター
162
フォーク
6
平均マージ
12時間 55分
マージ済み PR(30日)
2

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

tsiger/widgetizer のほかの issue

tsiger/widgetizer の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。