aboutsummaryrefslogtreecommitdiff
path: root/next.config.mjs
diff options
context:
space:
mode:
authorzwlucas <lucas.oliveira1676@etec.sp.gov.br>2025-04-01 02:34:04 +0000
committerzwlucas <lucas.oliveira1676@etec.sp.gov.br>2025-04-01 02:34:04 +0000
commit79670b4c51ebbdd242b894a5f0678618054cc2ef (patch)
tree654b351c13016b7d83137409b56031110cb46628 /next.config.mjs
parent0d54368efc5e91bf1beea8961655fa77f51b3074 (diff)
downloadeleicoes-79670b4c51ebbdd242b894a5f0678618054cc2ef.tar.gz
eleicoes-79670b4c51ebbdd242b894a5f0678618054cc2ef.zip
create eletrocast-eleicoes
Diffstat (limited to 'next.config.mjs')
-rw-r--r--next.config.mjs48
1 files changed, 48 insertions, 0 deletions
diff --git a/next.config.mjs b/next.config.mjs
new file mode 100644
index 0000000..060b74a
--- /dev/null
+++ b/next.config.mjs
@@ -0,0 +1,48 @@
+let userConfig = undefined
+try {
+ userConfig = await import('./v0-user-next.config')
+} catch (e) {
+ // ignore error
+}
+
+/** @type {import('next').NextConfig} */
+const nextConfig = {
+ eslint: {
+ ignoreDuringBuilds: true,
+ },
+ typescript: {
+ ignoreBuildErrors: true,
+ },
+ images: {
+ unoptimized: true,
+ },
+ experimental: {
+ webpackBuildWorker: true,
+ parallelServerBuildTraces: true,
+ parallelServerCompiles: true,
+ },
+}
+
+mergeConfig(nextConfig, userConfig)
+
+function mergeConfig(nextConfig, userConfig) {
+ if (!userConfig) {
+ return
+ }
+
+ for (const key in userConfig) {
+ if (
+ typeof nextConfig[key] === 'object' &&
+ !Array.isArray(nextConfig[key])
+ ) {
+ nextConfig[key] = {
+ ...nextConfig[key],
+ ...userConfig[key],
+ }
+ } else {
+ nextConfig[key] = userConfig[key]
+ }
+ }
+}
+
+export default nextConfig