create-fullstack-scaffold 0.4.19 → 0.4.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-fullstack-scaffold",
3
- "version": "0.4.19",
3
+ "version": "0.4.21",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "create-fullstack-scaffold": "dist/cli/index.js"
@@ -5,6 +5,10 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>Admin Dashboard</title>
8
+ <script>
9
+ // Redirect to /admin/ so React Router basename matches
10
+ if (location.pathname === '/admin.html') location.replace('/admin/')
11
+ </script>
8
12
  </head>
9
13
  <body>
10
14
  <div id="root"></div>
@@ -5,6 +5,10 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>Merchant Admin</title>
8
+ <script>
9
+ // Redirect to /merchant/ so React Router basename matches
10
+ if (location.pathname === '/merchant.html') location.replace('/merchant/')
11
+ </script>
8
12
  </head>
9
13
  <body>
10
14
  <div id="root"></div>
@@ -5,6 +5,10 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>Tenant Admin</title>
8
+ <script>
9
+ // Redirect to /tenant/ so React Router basename matches
10
+ if (location.pathname === '/tenant.html') location.replace('/tenant/')
11
+ </script>
8
12
  </head>
9
13
  <body>
10
14
  <div id="root"></div>
@@ -12,9 +12,10 @@ try {
12
12
  const rendererMod = await import('@prerenderer/renderer-puppeteer')
13
13
  puppeteerRenderer = rendererMod.default
14
14
  // Verify Chrome is actually available at runtime
15
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
15
16
  // @ts-ignore — puppeteer is an optional dependency, may not be installed
16
17
  const pupMod = await import('puppeteer')
17
- const chromePath = await pupMod.executablePath()
18
+ const chromePath: string = await pupMod.executablePath()
18
19
  if (!existsSync(chromePath)) {
19
20
  prerender = undefined
20
21
  puppeteerRenderer = undefined