A real-time multiplayer quiz battle platform.
To fix the 404: NOT_FOUND error on Vercel, ensure your project is configured with the following settings in the Vercel Dashboard:
- Framework Preset:
Other - Build Command:
Note: This command clones the Flutter SDK and builds the web app. If you are deploying manually, just build locally and upload the contents of
if [ -d "flutter" ]; then cd flutter && git pull && cd ..; else git clone https://github.com/flutter/flutter.git; fi && ./flutter/bin/flutter build web --release
build/web. - Output Directory:
build/web - Rewrites: I have added a
vercel.jsonfile to your project root. This ensures that all URLs are redirected toindex.html, preventing 404 errors when refreshing the page.
- Ensure you have Flutter installed.
- Run
flutter pub get. - Run
flutter run -d chrome.