Origem: D:/Documents/Github/OllaHub Arquivos omitidos (segredos, bancos de dados, logs, >50 MB): 0
This commit is contained in:
1 parent
a7cbd1a3b4
commit
861af0bb9f
217 files changed
+39421
-1340
No files matched your search
+7
-11
@@ -5,8 +5,7 @@ const nextConfig: NextConfig = {
|
||||
images: {
|
||||
unoptimized: true,
|
||||
},
|
||||
<<<<<<< HEAD
|
||||
webpack: (config, { isServer, webpack }) => {
|
||||
webpack: (config) => {
|
||||
// Garantir que config.module e config.module.rules existam
|
||||
if (!config.module) {
|
||||
config.module = { rules: [] };
|
||||
@@ -14,10 +13,7 @@ const nextConfig: NextConfig = {
|
||||
if (!config.module.rules) {
|
||||
config.module.rules = [];
|
||||
}
|
||||
|
||||
=======
|
||||
webpack: (config) => {
|
||||
>>>>>>> 593efd42e091a845dea82ee6646e027bce1e18c5
|
||||
|
||||
// Adiciona suporte para raw-loader para arquivos .md
|
||||
config.module.rules.push({
|
||||
test: /\.md$/,
|
||||
@@ -28,30 +24,30 @@ const nextConfig: NextConfig = {
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
// Desabilitar source maps completamente para evitar problemas com stack traces
|
||||
// O erro "ignore-listed frames" está relacionado ao processamento de source maps
|
||||
config.devtool = false;
|
||||
|
||||
|
||||
// Configurar ignoreWarnings para evitar erros relacionados a stack traces
|
||||
if (!config.ignoreWarnings) {
|
||||
config.ignoreWarnings = [];
|
||||
}
|
||||
|
||||
|
||||
// Ignorar avisos relacionados a módulos não encontrados ou problemas de parsing
|
||||
config.ignoreWarnings.push(
|
||||
/Failed to parse source map/,
|
||||
/Can't resolve/,
|
||||
/ignore-listed/,
|
||||
);
|
||||
|
||||
|
||||
// Configurar stats para reduzir verbosidade e evitar problemas com stack traces
|
||||
if (!config.stats) {
|
||||
config.stats = {};
|
||||
}
|
||||
config.stats.errorDetails = false;
|
||||
config.stats.errorStack = false;
|
||||
|
||||
|
||||
return config;
|
||||
},
|
||||
// Configuração Turbopack: objeto vazio silencia o erro
|
||||
|
||||
Reference in new issue
Block a user