mirror of
https://github.com/journey-ad/Bitmagnet-Next-Web
synced 2024-11-22 10:13:07 +00:00
19 lines
423 B
JavaScript
19 lines
423 B
JavaScript
const createNextIntlPlugin = require('next-intl/plugin');
|
|
|
|
const withNextIntl = createNextIntlPlugin('./i18n');
|
|
|
|
const mode = process.env.BUILD_MODE ?? 'standalone';
|
|
console.log("[Next] build mode:", mode);
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
output: mode,
|
|
experimental: {
|
|
serverComponentsExternalPackages: [
|
|
'@node-rs/jieba'
|
|
]
|
|
}
|
|
}
|
|
|
|
module.exports = withNextIntl(nextConfig);
|