Fix: 404 errors for static assets when using CMD_URL_PATH configuration by Yukaii · Pull Request #1943 · hackmdio/codimd
- Added support for a configurable URL path in the application, allowing static files and routes to be served under a specified path. - Implemented redirection from the root to the configured URL path. - Updated socket.io initialization to respect the URL path configuration. - Enhanced middleware to prevent redirection for the URL path itself. This change improves flexibility in routing and enhances the application's structure. Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters