@hotmeshio/long-tail 0.4.8 → 0.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -132,7 +132,7 @@ class LTExpressAdapter {
|
|
|
132
132
|
// Dashboard static assets
|
|
133
133
|
const dashboardDist = this.resolveDashboardDist();
|
|
134
134
|
if (dashboardDist) {
|
|
135
|
-
router.use(express_1.default.static(dashboardDist));
|
|
135
|
+
router.use(express_1.default.static(dashboardDist, { index: false }));
|
|
136
136
|
// SPA fallback — inject base path into index.html
|
|
137
137
|
const indexHtml = (0, fs_1.readFileSync)(path_1.default.join(dashboardDist, 'index.html'), 'utf-8');
|
|
138
138
|
router.get('/{*splat}', (_req, res) => {
|
package/package.json
CHANGED