mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
47 lines
1.1 KiB
JavaScript
47 lines
1.1 KiB
JavaScript
import withPWAInit from "@ducanh2912/next-pwa"
|
|
import withBundleAnalyzer from "@next/bundle-analyzer"
|
|
import createNextIntlPlugin from "next-intl/plugin"
|
|
|
|
const bundleAnalyzer = withBundleAnalyzer({
|
|
enabled: process.env.ANALYZE === "true",
|
|
})
|
|
|
|
const withNextIntl = createNextIntlPlugin()
|
|
|
|
const withPWA = withPWAInit({
|
|
dest: "public",
|
|
cacheOnFrontEndNav: true,
|
|
aggressiveFrontEndNavCaching: true,
|
|
reloadOnOnline: true,
|
|
disable: false,
|
|
workboxOptions: {
|
|
disableDevLogs: true,
|
|
},
|
|
})
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
experimental: {
|
|
webpackBuildWorker: true,
|
|
parallelServerBuildTraces: true,
|
|
parallelServerCompiles: true,
|
|
inlineCss: true,
|
|
reactCompiler: true,
|
|
serverActions: {
|
|
allowedOrigins: ["*"],
|
|
},
|
|
},
|
|
output: "standalone",
|
|
eslint: {
|
|
// Warning: This allows production builds to successfully complete even if
|
|
// your project has ESLint errors.
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
logging: {
|
|
fetches: {
|
|
fullUrl: true,
|
|
},
|
|
},
|
|
}
|
|
export default bundleAnalyzer(withPWA(withNextIntl(nextConfig)))
|