UNPKG

undedoloremque

Version:
38 lines (32 loc) 726 B
const _getPublicEnv = (prefix) => { const envs = process.env; const res = {}; Object.keys(envs).forEach((k) => { if (k.startsWith(prefix)) { res[k] = envs[k]; } }); return res; }; /** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: false, trailingSlash: true, publicRuntimeConfig: { ..._getPublicEnv('NEXT_PUBLIC_'), }, eslint: { // Warning: This allows production builds to successfully complete even if // your project has ESLint errors. ignoreDuringBuilds: true, }, webpack: (config) => { config.resolve.fallback = { fs: false, net: false, tls: false, }; return config; }, }; module.exports = nextConfig;