This document provides instructions for deploying the Ultra Stream web application to Netlify.
The easiest way to deploy the Ultra Stream web application is to connect your Netlify account to the GitHub repository:
- Log in to your Netlify account at https://app.netlify.com/
- Click "Add new site" > "Import an existing project"
- Select "GitHub" as the Git provider
- Authorize Netlify to access your GitHub account if prompted
- Select the "Ultra-Stream" repository
- Configure the build settings:
- Build command:
npm run build - Publish directory:
build
- Build command:
- Click "Deploy site"
Netlify will automatically detect the netlify.toml configuration file in the repository, which already contains the correct build settings.
If you prefer to deploy manually:
-
Install the Netlify CLI:
npm install netlify-cli -g -
Log in to your Netlify account:
netlify login -
Navigate to the project directory:
cd Ultra-Stream -
Build the project:
npm run build -
Deploy to Netlify:
netlify deploy --prod
You may need to set the following environment variables in your Netlify site settings:
REACT_APP_FIREBASE_API_KEY: Firebase API keyREACT_APP_FIREBASE_AUTH_DOMAIN: Firebase auth domainREACT_APP_FIREBASE_PROJECT_ID: Firebase project IDREACT_APP_FIREBASE_STORAGE_BUCKET: Firebase storage bucketREACT_APP_FIREBASE_MESSAGING_SENDER_ID: Firebase messaging sender IDREACT_APP_FIREBASE_APP_ID: Firebase app IDREACT_APP_FIREBASE_MEASUREMENT_ID: Firebase measurement ID
To set these variables:
- Go to your site dashboard in Netlify
- Navigate to Site settings > Build & deploy > Environment
- Add each variable and its value
To set up a custom domain:
- Go to your site dashboard in Netlify
- Navigate to Domain settings
- Click "Add custom domain"
- Follow the instructions to configure your DNS settings
Netlify automatically sets up continuous deployment from your GitHub repository. Any changes pushed to the main branch will trigger a new build and deployment.
To change this behavior:
- Go to your site dashboard in Netlify
- Navigate to Site settings > Build & deploy > Continuous Deployment
- Modify the settings as needed
If you encounter issues with your deployment:
- Check the build logs in Netlify for errors
- Verify that all environment variables are correctly set
- Ensure the build command and publish directory are correctly configured
- Check that the
netlify.tomlfile is present in the repository
For additional help, refer to the Netlify documentation or contact the repository owner.