Skip to content

Feature Request System - Integration Summary

Date: 2026-01-12
Status: ✅ Issues Fixed - Ready for Testing

Summary of Work Completed

  1. ✅ Fixed Cloud Functions 500 Error

    • Rewrote environment configuration handling in functions/index.js
    • Added .runtimeconfig.json for local development
    • Corrected Octokit API call to use .rest.issues.create()
    • Improved logging for missing env vars
  2. ✅ Fixed Service Worker MIME Type Error

    • Updated public/_redirects to exclude /sw.js from SPA fallback
    • Added service worker bypass rule /sw.js /sw.js 200!
    • Added dev server configuration in vite.config.mjs
  3. ✅ Documentation & Verification

    • Added INTEGRATION_FIXES.md with step-by-step instructions
    • Added verify-fixes.sh for quick checks
    • Updated CHANGELOG.md under [Unreleased]

What to Test Next

  • Submit feature request via #/feedback and confirm GitHub issue creation
  • Verify Discord notifications (if webhook configured)
  • Confirm checkDuplicates works for similar titles
  • Confirm service worker registers without MIME errors
  • Confirm rate limiting behavior (5 requests per 24 hours)

Files Touched

  • functions/index.js
  • functions/.runtimeconfig.json (local dev only)
  • public/_redirects
  • vite.config.mjs
  • docs/engineering/deployment/functions/INTEGRATION_FIXES.md
  • verify-fixes.sh
  • CHANGELOG.md

Open Items

  • Optional: Add Cloud Run logging/monitoring for Functions
  • Optional: Add automated tests for createFeatureRequest

See Also

Built with VitePress