Skip to content

clarify that public folder requires node_helper.js#362

Merged
rejas merged 1 commit intoMagicMirrorOrg:developfrom
KristjanESPERANTO:fix/public-folder-requires-node-helper
Feb 26, 2026
Merged

clarify that public folder requires node_helper.js#362
rejas merged 1 commit intoMagicMirrorOrg:developfrom
KristjanESPERANTO:fix/public-folder-requires-node-helper

Conversation

@KristjanESPERANTO
Copy link
Copy Markdown
Contributor

The module structure docs state that files in modulename/public are accessible via /modulename/filename.ext, but don't mention that this only works when the module has a node_helper.js.

The static route is registered in setExpressApp() (node_helper.js), which is only called for modules that have a node helper. Modules without one never get their public folder served — resulting in 404s that are hard to debug.

Context

This came up as a question on Discord — a user placed images in modules/my-module/public and got 404s.

@rejas rejas merged commit d5ddebe into MagicMirrorOrg:develop Feb 26, 2026
@KristjanESPERANTO KristjanESPERANTO deleted the fix/public-folder-requires-node-helper branch February 26, 2026 19:09
khassel added a commit that referenced this pull request Apr 1, 2026
* docs: improve autostart guide with user systemd service for full Electron UI (#345)

* Update autostart.md

Improve autostart documentation: add user systemd service for full Electron UI with logging and environment variables

* Update autostart.md

docs: address PR feedback — clarify display server and disable logging by default

* Update autostart.md

docs: verified the environment inherited by systemd --user, ensured DISPLAY=:0 and WAYLAND_DISPLAY=wayland-0 is set up automatically

* Update autostart.md

docs: updated Troubleshooting section

* clarify systemd service behavior + minor changes

- Add platform note: Clarify guide is for Raspberry Pi OS Desktop
- Fix typo: WAYLAND_DIAPLAY → WAYLAND_DISPLAY
- Fix misleading comment: System services start on boot, not after user login
- Remove trailing whitespace and newline

---------

Co-authored-by: Kristjan ESPERANTO <35647502+KristjanESPERANTO@users.noreply.github.com>

* style: set carbon ads background color to inherit (#350)

* location of default modules changed  (#353)

see MagicMirrorOrg/MagicMirror#4019

* move custom.css from css to config (#354)

* update variables in config

* add secrets.md

* fix typo

* add missing "

* node_modules/vitepress/types/default-theme.d.ts

* apply Prettier formatting

* handle cspell issues

* add weatherapi options to weather module configuration (#359)

* docs(compliments): clarify remoteFile path resolution and limitations (#360)

* docs: correct loaded() - server-side only, not a client-side hook (#361)

Document that loaded() belongs to node_helper, not Module.
Add async/Promise support to the start() docs as the correct
way to handle asynchronous module initialization.

* docs: clarify that public folder requires node_helper.js (#362)

* docs: explain physical concept and hardware scope on landing page (#365)

Add a short paragraph to index.md that explains what a MagicMirror
physically is, clarifies that this documentation covers the software
side only, and points newcomers to the community showcase for
hardware build inspiration.

Closes MagicMirrorOrg/MagicMirror#3282

* add weather templates (#366)

* weather: add themes example

* calendar: align showEnd and dateEndFormat defaults (#368)

* fix failing tests

---------

Co-authored-by: Github Actions <actions@github.com>
Co-authored-by: Станислав <52878917+vectorman115@users.noreply.github.com>
Co-authored-by: Kristjan ESPERANTO <35647502+KristjanESPERANTO@users.noreply.github.com>
Co-authored-by: veeck <gitkraken@veeck.de>
Co-authored-by: sam detweiler <sdetweil@gmail.com>
Co-authored-by: Andrés Vanegas Jiménez <142350+angeldeejay@users.noreply.github.com>
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