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
- self-hosted auth: /v1/account 404 on saf...
Project created in React/Next.js, Appwrite version 1.6.0. Authentication works in all browsers except Safari (ios), where an attempt to connect to {endpoint}/v1...
- delete document problems
i don't know what's going on but i get an attribute "tournamentid" not found in the collection when i try to delet the document... but this is just the document...
- Update User Error
```ts const { users, databases } = await createAdminClient(); const session = await getLoggedInUser(); const user = await users.get(session.$id); if (!use...