2025-02-14 11:48:36 +01:00
|
|
|
import { fileURLToPath } from 'url'
|
|
|
|
import { dirname, join } from 'path'
|
|
|
|
|
|
|
|
const __filename = fileURLToPath(import.meta.url)
|
|
|
|
const __dirname = dirname(__filename)
|
|
|
|
|
2025-02-13 23:04:40 +01:00
|
|
|
/** @type {import('next').NextConfig} */
|
|
|
|
const nextConfig = {
|
2025-02-14 11:44:56 +01:00
|
|
|
output: "export",
|
2025-02-13 23:04:40 +01:00
|
|
|
images: {
|
|
|
|
unoptimized: true,
|
|
|
|
},
|
2025-02-14 11:44:56 +01:00
|
|
|
assetPrefix: "/ProxMenux/",
|
|
|
|
basePath: "/ProxMenux",
|
2025-02-14 11:48:36 +01:00
|
|
|
staticPageGenerationTimeout: 180,
|
2025-02-14 11:44:56 +01:00
|
|
|
webpack: (config, { isServer }) => {
|
2025-02-14 11:48:36 +01:00
|
|
|
config.resolve.alias["@guides"] = join(__dirname, "..", "guides")
|
|
|
|
config.resolve.alias["@changelog"] = join(__dirname, "..", "CHANGELOG.md")
|
2025-02-14 11:44:56 +01:00
|
|
|
return config
|
2025-02-13 23:04:40 +01:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2025-02-14 11:48:36 +01:00
|
|
|
export default nextConfig
|
2025-02-13 23:04:40 +01:00
|
|
|
|
|
|
|
|