UNPKG

portal-www

Version:

Nova Portal Website. Based on Next starter by Ueno

51 lines (44 loc) 1.24 kB
require('dotenv').config(); const path = require('path'); const { i18n } = require('./next-i18next.config'); module.exports = { i18n, serverRuntimeConfig: { /* * Will only be available on the server side */ GTM_ID: process.env.GTM_ID, }, publicRuntimeConfig: { /* * Will be available on both server and client */ API_ENDPOINT: process.env.API_ENDPOINT, CUSTOMER_BS_URL: process.env.CUSTOMER_BS_URL, AUTHENTICATION_SERVER_URL: process.env.AUTHENTICATION_SERVER_URL, SENTRY_DSN: process.env.SENTRY_DSN, NODE_ENV: process.env.NODE_ENV, NOVA_WEB_URL: process.env.NOVA_WEB_URL, }, typescript: { // !! WARN !! // Dangerously allow production builds to successfully complete even if // your project has type errors. // !! WARN !! ignoreBuildErrors: true, }, eslint: { // Warning: This allows production builds to successfully complete even if // your project has ESLint errors. ignoreDuringBuilds: true, }, distDir: process.env.BUILD_OUTPUT, webpack(config) { config.module.rules.push({ test: /\.svg$/, use: ['@svgr/webpack'], exclude: path.resolve(__dirname, 'node_modules'), }); return config; }, };