tried to upload my site on netlify with appwrite but the authentification didn't work anyone know what can be wrong in the porject ?
what's the error?
something is wrong with what you're passing into client.setEndpoint(). Did you configure the environment variable in netlify (assuming you're using an environment variable)?
this is what you mean right ?
or is there something else ?
no this is Appwrite side.
your code:
export const conf = {
appwriteUrl: String(process.env.REACT_APP_APPWRITE_URL),
appwriteProjectId: String(process.env.REACT_APP_APPWRITE_PROJECT_ID),
appwriteDatabaseId: String(process.env.REACT_APP_APPWRITE_DATABASE_ID),
appwriteCollectionId: String(
process.env.REACT_APP_APPWRITE_TODO_COLLECTION_ID
),
appwriteApiKey: String(process.env.REACT_APP_APPWRITE_API_KEY),
appwriteTODOCOLLECTION: String(
process.env.REACT_APP_APPWRITE_TODO_COLLECTION_ID
),
appwriteGOALSCOLLECTION: String(
process.env.REACT_APP_APPWRITE_GOALS_COLLECTION_ID
),
appwriteAllTags: String(process.env.REACT_APP_APPWRITE_ALLTAGS_COLLECTION_ID),
appwriteSUBTASKS: String(
process.env.REACT_APP_APPWRITE_SUBTASKS_COLLECTION_ID
),
appwriteGoalslvlpicture: String(
process.env.REACT_APP_APPWRITE_GOALS_LVL_PICTURE_COLLECTION_ID
),
appwriteROUTINECOLLECTION: String(
process.env.REACT_APP_APPWRITE_ROUTINE_COLLECTION_ID
),
};
you're using all these environment variables. so you need to configure them in Netlify
ohhh
one sec then
okay that was stupid of me . thank you !
[SOLVED]netlify+appwrite
Recommended threads
- Google Auth not working in a React App
Authentication with Google has failed. It redirects back to the signin route in React. Attached screenshots for configuration of Google console and Appwrite Go...
- Dokploy docker compose
Hey guys hope y'all doing well, I was wondering if anyone could share a working 1.8.0 docker-compose that works with Dokploy I tried making it but it just does...
- i need help!
I was working on my project and I just can't stop receiving this message. Is something wrong?