To deploy this application to Netlify and ensure authentication works correctly, follow these steps:
Push your code to your GitHub repository connected to Netlify.
In your Netlify Site Settings > Build & deploy > Environment variables, add the following variables:
OPENAI_API_KEY: Your OpenAI API Key.ASTRA_DB_APPLICATION_TOKEN: Your Astra DB Application Token.ASTRA_DB_API_ENDPOINT: Your Astra DB API Endpoint.TMDB_API_KEY: Your TMDB API Key.
In your Auth0 Dashboard for the application dev-m8rlho4hfnlmqtte.us.auth0.com (Client ID: GYLpbuiXYNt8n3AsLLjrWOIJjAyLWGPB):
- Go to Settings > Application URIs.
- Add
https://theintersect.netlify.appto Allowed Callback URLs. - Add
https://theintersect.netlify.appto Allowed Logout URLs. - Add
https://theintersect.netlify.appto Allowed Web Origins. - Save Changes.
Visit https://theintersect.netlify.app.
- Click "Login".
- You should be redirected to Auth0.
- After login, you should be redirected back to
https://theintersect.netlify.appand see your user profile.
- The application is configured to redirect to
https://theintersect.netlify.appupon login. - Ensure that your Netlify site name is indeed
theintersect. If it is different, update theredirect_uriinmain.js(line ~40) to match your actual Netlify URL. - Do not commit your
.envfile to GitHub. It is already in.gitignore.