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
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...
- CORS errors in Obsidian custom plugin
Hi, anyone here familiar with obsidian community plugins? In short: it's a local first note app which supports writing your own add-ons / plugin But I keep get...
- > AppwriteException: The requested servi...
When trying to read or write from my database I get the following error: > AppwriteException: The requested service is disabled. You can enable the service from...