Closed kucherenko closed 1 year ago
feature/58-update-default-port
Implement task #58 - Set default port for the nuxt app
To set the default port for the Nuxt app to 8080, we need to update the 'nuxt.config.js' file. We will add a 'server' configuration object to the existing Nuxt config and set the 'port' property to 8080. Here is the updated content for 'nuxt.config.js':
export default {
// Nuxt.js modules
modules: [
'@nuxtjs/tailwindcss',
'@nuxtjs/eslint-module',
],
// Tailwind CSS configuration
tailwindcss: {
jit: true,
},
// ESLint configuration
eslint: {
cache: false,
},
// Build configuration
build: {
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
}
}
},
// Server configuration
server: {
port: 8080,
}
}
Update nuxt config and set the default port to 8080.