Skip to content

Fix SPA fallback API interception and align docs/runtime metadata#1

Open
DevvGwardo wants to merge 1 commit into
MisterGuy420:mainfrom
DevvGwardo:fix/spa-fallback-and-doc-alignment
Open

Fix SPA fallback API interception and align docs/runtime metadata#1
DevvGwardo wants to merge 1 commit into
MisterGuy420:mainfrom
DevvGwardo:fix/spa-fallback-and-doc-alignment

Conversation

@DevvGwardo

Copy link
Copy Markdown

Summary

This PR fixes a critical backend routing issue and aligns a few project inconsistencies discovered during analysis.

Changes

  • Fix SPA fallback behavior in server/server.js

    • Updated app.get('*', ...) to call next() for API and WS paths instead of silently swallowing requests.
    • Added missing API prefixes (/upload, /me) to bypass checks.
    • This prevents route interception/hanging behavior for backend endpoints.
  • Align server startup metadata

    • Updated startup banner version from v1.0.0 to v2.0.0.
    • Corrected API URL display from /api to root path (http://localhost:<PORT>), matching actual route mounts.
  • Align frontend upload picker with backend allowlist

    • Expanded file input accept in frontend/src/components/MessageInput.jsx to include supported media/document types (video/*, audio/*, .pdf, .txt, .md, .json, .js).
  • Align README Node requirement with package engines

    • Updated README Node badge and prerequisite from 20+ to 18+ to match root package.json engines.

Validation

  • npm run install:all --silent && npm run build --silent
  • npm test --silent reports no test files (existing repo state).

Notes

Original requested repository (MisterGuy420/clawchat-dev) was not accessible (404), so this PR targets the closest accessible repository: MisterGuy420/clawchat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant