Next.js Discord

Discord Forum

Next.js 14 standalone output and public dir

Answered
Cape lion posted this in #help-forum
Open in Discord
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?
Answered by Ray
you need to copy yourself
View full answer

15 Replies

@Cape lion I don't understand, when I build my code, there's no public directory in `.next/standalone`, should I copy it by myself?
you need to copy yourself
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.
@Ray `.next/standalone/server.js`
Giant panda
These are the only files I get output
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.js
Giant panda
oh ok
Giant panda
Thank you