import webpack from 'webpack' export default { // Enable server-side rendering (https://go.nuxtjs.dev/ssr-mode) ssr: true, // Auto import components (https://go.nuxtjs.dev/config-components) components: true, loading: '~/components/Layout/Loading.vue', // Build Configuration (https://go.nuxtjs.dev/config-build) build: { extend (config, { isDev, isClient }) { config.node = { fs: "empty" } }, plugins: [ new webpack.ProvidePlugin({ _: 'lodash' }) ] }, // Port and local host server: { port: 3002, host: '0.0.0.0', // default: localhost, }, // Poll for hot reloading with docker watchers: { webpack: { aggregateTimeout: 300, poll: 1000 } } }