
requests are being sent but the users are not getting created , maybe i think my code could be possibly wrong

i followed this just coz' it was sponsored by appwrite

should I use things like axios ??

and I was** unable to find a guide for using next js with appwrite**

hey @Berserker

Why don't you try this: https://github.com/sanny-io/react-appwrite

lemme check

thnx bro

@joeyouss is there any work around ?

@safwan bro how to use this package , i meant what this package will do ?

First off, I highly recommend avoiding server-side rending if possible. server-side rendering it makes your app significantly more complicated because you have to manage sessions on the client AND on the server.
Back to your error, though....what's your code in ./src/app/components/appwrite[server].js
? The error says you're using await
somewhere that isn't allowed.

@Steven may I know y SSR is bad

Okie

server-side rendering it makes your app significantly more complicated because you have some code running client side and some code running server side. if you have a session with some external API on the client side, your server-side code won't automatically have it. you need to manage that yourself.

Okie got it sir , i thought SSR would make things fast and thank u

@safwan here is the file


i think there are 2 benefits to SSR:
- SEO since crawlers can easily index the data
- maybe faster if you have a ton of logic and the server is a lot more powerful than the client since the client doesn't need to process the javascript, but the server will have to
However, it makes the app significantly more complicated for the reasons I mentioned.

okie sir as a beginner , then I have to go with client side i think so

so you have an await
there that's not in a function. that's not allowed

okie lemme fix it

@Steven then can i do the stuffs like creating database **from the client side itself **; using sdk

No, I typically do that with an Appwrite Function. You can try to do that with a NextJS server side endpoint, but you may need to manage access to your endpoint yourself

@Steven Then I'll go with appwrite function itself , i don't wanna put myself into trouble

@Steven again thnk u sir
Recommended threads
- Stuck in "deleting"
my parent element have relationship that doesnt exist and its stuck in "deleting", i cant delete it gives me error: Collection with the requested ID could not b...
- Help with 409 Error on Relationship Setu...
I ran into a 409 document_already_exists issue. with AppWrite so I tried to debug. Here's what I've set up: Collection A has 3 attributes and a two-way 1-to-m...
- Database Double Requesting Error.
I am getting error for creating new document in an collection with new ID.unique() then too getting error of existing document. When button is pressed one docum...
