From f8404cf2a0eaf990be8de024af55a408f7d4f9f4 Mon Sep 17 00:00:00 2001 From: MacRimi <123239993+MacRimi@users.noreply.github.com> Date: Fri, 14 Feb 2025 11:48:36 +0100 Subject: [PATCH] Update next.config.mjs --- web/next.config.mjs | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/web/next.config.mjs b/web/next.config.mjs index 34cf248..c56cd19 100644 --- a/web/next.config.mjs +++ b/web/next.config.mjs @@ -1,3 +1,9 @@ +import { fileURLToPath } from 'url' +import { dirname, join } from 'path' + +const __filename = fileURLToPath(import.meta.url) +const __dirname = dirname(__filename) + /** @type {import('next').NextConfig} */ const nextConfig = { output: "export", @@ -6,15 +12,14 @@ const nextConfig = { }, assetPrefix: "/ProxMenux/", basePath: "/ProxMenux", - staticPageGenerationTimeout: 180, // Aumentamos el tiempo de espera a 180 segundos + staticPageGenerationTimeout: 180, webpack: (config, { isServer }) => { - const path = require("path") - config.resolve.alias["@guides"] = path.join(__dirname, "..", "guides") - config.resolve.alias["@changelog"] = path.join(__dirname, "..", "CHANGELOG.md") + config.resolve.alias["@guides"] = join(__dirname, "..", "guides") + config.resolve.alias["@changelog"] = join(__dirname, "..", "CHANGELOG.md") return config }, } -module.exports = nextConfig +export default nextConfig