Next.js 14 standalone output and public dir
Answered
Cape lion posted this in #help-forum
Cape lionOP
I don't understand, when I build my code, there's no public directory in
.next/standalone, should I copy it by myself?15 Replies
Answer
@Ray you need to copy yourself
Cape lionOP
Thank you
Pechora Pipit
did it work for you @Cape lion? I did the copy stuff but I dont see my components from DevExtreme library 😦
@Ray you need to copy yourself
Giant panda
Where is this
server.js file? I don't receive it when building.@Giant panda Where is this `server.js` file? I don't receive it when building.
.next/standalone/server.js@Ray `.next/standalone/server.js`
Giant panda
These are the only files I get output
https://i.imgur.com/VC8l2py.png
https://i.imgur.com/VC8l2py.png
@Giant panda These are the only files I get output
https://i.imgur.com/VC8l2py.png
have you enabled the standalone output yet
Giant panda
No?
so no
Giant panda
How does one do that?
enable it on
next.config.jsGiant panda
oh ok
Giant panda
It was missing from https://nextjs.org/docs/app/building-your-application/deploying so I got confused
Thank you