The server option is used to configure the server connection variables of our Nuxt app. It has the following default server connection details:
export default {
server: {
port: 3000,
host: 'localhost',
socket: undefined,
https: false,
timing: false
}
}
You can change them as follows:
export default {
server: {
port: 8080,
host: '0.0.0.0'
}
}
Now, your app is running at 0.0.0.0:8080.
You can find an example app for this option in /chapter-2/configuration/server/ in our GitHub repository.