@rsktash/beads-ui 0.1.19 → 0.1.22

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.
package/dist/index.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>Beads UI</title>
7
- <script type="module" crossorigin src="/assets/index-B1q58Ncp.js"></script>
7
+ <script type="module" crossorigin src="/assets/index-BC_q7wd0.js"></script>
8
8
  <link rel="stylesheet" crossorigin href="/assets/index-BSGhTjZV.css">
9
9
  </head>
10
10
  <body style="background: #FDFBF7; color: #1A1A1A;">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsktash/beads-ui",
3
- "version": "0.1.19",
3
+ "version": "0.1.22",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/rsktash/beads-ui.git"
package/server/app.js CHANGED
@@ -114,12 +114,8 @@ export function createApp(config) {
114
114
  const staticDir = process.env.BEADS_UI_STATIC || config.app_dir;
115
115
  app.use(express.static(staticDir));
116
116
 
117
- // Root serves index.html explicitly (even if static would catch it)
118
- /**
119
- * @param {Request} _req
120
- * @param {Response} res
121
- */
122
- app.get('/', (_req, res) => {
117
+ // SPA catch-all — serve index.html for all non-API, non-static routes
118
+ app.get('*', (_req, res) => {
123
119
  const index_path = path.join(staticDir, 'index.html');
124
120
  res.sendFile(index_path);
125
121
  });