Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
334cd068d2 |
@@ -1 +1 @@
|
||||
{"root":["./src/app.tsx","./src/main.tsx","./src/components/nodecard.tsx","./src/components/projectspanel.tsx","./src/components/stattile.tsx","./src/components/storagebar.tsx","./src/lib/api.ts","./src/pages/commandcenter.tsx","./src/pages/nodedetail.tsx","./src/pages/reftrackingpage.tsx","./src/pages/storagebrowser.tsx"],"version":"6.0.3"}
|
||||
{"root":["./src/App.tsx","./src/main.tsx","./src/components/NodeCard.tsx","./src/components/ProjectsPanel.tsx","./src/components/StatTile.tsx","./src/components/StorageBar.tsx","./src/lib/api.ts","./src/pages/CommandCenter.tsx","./src/pages/NodeDetail.tsx","./src/pages/RefTrackingPage.tsx","./src/pages/StorageBrowser.tsx"],"version":"6.0.3"}
|
||||
@@ -6,13 +6,15 @@ import react from '@vitejs/plugin-react';
|
||||
// During local dev the daemon proxies /api/v2/* on :7700 so
|
||||
// `vite dev` on :5173 can hit it via server.proxy.
|
||||
export default defineConfig({
|
||||
// Absolute base tied to the deploy path. Prior try was `./`
|
||||
// (fully relative) which broke when the user hit `/clawstor`
|
||||
// without trailing slash — browser resolves `./assets/…`
|
||||
// against `/clawstor` treated as a file, gives `/assets/…`,
|
||||
// 404 from Tailscale. Absolute `/clawstor/` sidesteps the
|
||||
// slash / no-slash ambiguity.
|
||||
base: '/clawstor/',
|
||||
// Absolute base matching the backend's actual mount point
|
||||
// (`serve.rs` nests the v2 static dir at `/v2` via
|
||||
// `nest_service("/v2", …)`). A prior `/clawstor/` base assumed a
|
||||
// Tailscale Serve path mapping that was never actually configured
|
||||
// on any node (checked `tailscale serve status` on tank +
|
||||
// architect: neither proxies a `/clawstor` path) — that base
|
||||
// silently broke direct `:7700/v2/` access, the only access
|
||||
// pattern that's actually live.
|
||||
base: '/v2/',
|
||||
plugins: [react()],
|
||||
server: {
|
||||
port: 5173,
|
||||
|
||||
Reference in New Issue
Block a user