Bitmagnet-Next-Web/next.config.js

19 lines
423 B
JavaScript
Raw Normal View History

const createNextIntlPlugin = require('next-intl/plugin');
const withNextIntl = createNextIntlPlugin('./i18n');
2024-06-19 08:24:25 +00:00
const mode = process.env.BUILD_MODE ?? 'standalone';
console.log("[Next] build mode:", mode);
/** @type {import('next').NextConfig} */
2024-06-19 08:24:25 +00:00
const nextConfig = {
output: mode,
experimental: {
serverComponentsExternalPackages: [
'@node-rs/jieba'
]
}
2024-06-19 08:24:25 +00:00
}
module.exports = withNextIntl(nextConfig);