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
- Collections list not showing up when try...
I'm trying to create new relationship attribute but both one way and two way relationship is not showing up collections list to connect with my relationship att...
- I have try to use the appwrite in to the...
Invalid Origin. Register your new client (oailedjdbkhlkakmnnapoonllbnfmfij) as a new Web (Chrome Extension) platform on your project console dashboard
- Paused project can't activate
I have failed to reactivate one my projects which had been paused