Update next.config.mjs

This commit is contained in:
MacRimi 2025-02-14 11:48:36 +01:00 committed by GitHub
parent 2f8fa052fc
commit f8404cf2a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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