#Deploying Next.js Docker Container With `NEXT START`
11 messages · Page 1 of 1 (latest)
🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord
🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize
✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)
Deploying Next.js Docker Container With NEXT START
middleware also work with the docker example
Oh ok. Didn't catch that. Thank you!
Does this apply for other Next.js features as well? For example it says in the docs that Image Optimization is supported with zero configuration only when deploying using next start. If not are you aware of any Docker setups with next start I can check?
And final question sorry! If middleware also work with the docker example that would mean I don't need to deploy using next start if I want to implement a custom CSP with their middlware.js setup ?
basically, next start = a node server
the docker example using the standalone output which also run on a node server
I understand. So basically I am not loosing any features and I don't need to make changes to implement some other Docker setups I saw with different startup commands like CMD ["node_modules/.bin/next", "start"]
yes the standalone output can keep your image small
which doesn't contain the node_module folder
Ok. Thank you so much! 🙏