Next.js Discord

Discord Forum

Deployment

Answered
Sloth bear posted this in #help-forum
Open in Discord
Sloth bearOP
Hello, I don't understand how can I deploy my app without "output": "export" because I want to use some features like API Routes.
Thanks
Answered by "use php"
You can't deploy next.js api routes to firebase Hosting
View full answer

9 Replies

Sloth bearOP
ok thks
So I just enter npm run build ?
And firebase deploy
?
You can't deploy next.js api routes to firebase Hosting
Answer
You'll have to use static build
Sloth bearOP
Ok Thanks