1.3 KiB
1.3 KiB
Video Query Frontend
This is the frontend for the Video Query application.
Development
npm install
npm start
Building for Production
To build the application for deployment at the /video_query path:
# Option 1: Use the build script (recommended)
./build.sh
# Option 2: Manual build with correct PUBLIC_URL
PUBLIC_URL=/video_query npm run build
Deployment
After building, deploy the contents of the build directory to your web server:
# Example deployment command
scp -r build/* user@server:/var/www/html/video_query/
Troubleshooting
Static Assets Not Loading
If you see errors like:
Loading failed for the <script> with source "https://ai-sandbox.oliver.solutions/static/js/main.xxx.js"
This means the application is looking for static assets at the wrong path. Make sure:
- You built the application with
PUBLIC_URL=/video_query - The
.envfile containsPUBLIC_URL=/video_query - The files are deployed to the correct directory on the server
Authentication Issues
If you encounter authentication issues:
- Verify the redirect URI in
src/auth/authConfig.jsmatches your deployment URL - Ensure the application is registered correctly in Azure AD
- Check browser console for specific authentication errors