Next.js Discord

Discord Forum

Functions with "use server" doesn't work in production but do work in localhost. Why?

Unanswered
Dogue Brasileiro posted this in #help-forum
Open in Discord
Dogue BrasileiroOP
Title says pretty much all. Functions in my lib/action.js file works in my localhost. but when i deploy it to a live domain, they don't work at all. Any reason or anything should i check?

3 Replies

"doesn't work" should come with an error. check the browser console, browser network tab, server-side logs for that. what is the error?
also need to define "doesn't work". how does it not work? any specific?
Dwarf Crocodile
in addition to @joulev comment, how you deploy ur app into server? e.g using containers..