Next.js Discord

Discord Forum

New to next.js, I want to send the contact us data to discord webhook, Do i have to make a backend?

Unanswered
Chinese Alligator posted this in #help-forum
Open in Discord
Chinese AlligatorOP
Do i have to make a backend? (I work with fastapi) Or is it possible safely through Just next.js?

26 Replies

@Chinese Alligator Do i have to make a backend? (I work with fastapi) Or is it possible safely through Just next.js?
It’s doable with just nextjs but you still need a server (e.g. Vercel) to host the nextjs app; static export doesn’t work here (unless you want to make the webhook url available to everyone)
What about backend?
Which one you suggest to do?
Make a backend with fastapi or with another way?
I think backend is better
But
Just use nextjs as a backend
Chinese AlligatorOP
I don't know about authentication
Nextjs is full stack so you can do both frontend and backend with nextjs
@joulev Just use nextjs as a backend
Chinese AlligatorOP
How is this possible?
@joulev .
Chinese AlligatorOP
Nice
How?
Can you send me the docs?
Read the documentation on route handlers and server action
But just do the tutorial first
It will explain everything you need to know
Pacific herring
https://www.youtube.com/@brettwestwooddeveloper

also this dude has a lot of good tutorials
this one too
Chinese AlligatorOP
Thank you guys
So with this i don't have to Run backend with one command and run frontend with one command?
All of them runs in just single npm run?