mirror of
https://github.com/logos-co/logos-web.git
synced 2026-08-27 20:21:08 +00:00
27 lines
656 B
JavaScript
27 lines
656 B
JavaScript
import { fileURLToPath } from 'node:url'
|
|
|
|
import createNextIntlPlugin from 'next-intl/plugin'
|
|
|
|
const withNextIntl = createNextIntlPlugin()
|
|
const workspaceRoot = fileURLToPath(new URL('../..', import.meta.url))
|
|
const isProduction = process.env.NODE_ENV === 'production'
|
|
|
|
const nextConfig = {
|
|
basePath: process.env.BASE_PATH || undefined,
|
|
experimental: {
|
|
globalNotFound: true,
|
|
},
|
|
images: {
|
|
unoptimized: true,
|
|
},
|
|
...(isProduction && { output: 'export' }),
|
|
reactStrictMode: true,
|
|
transpilePackages: ['@acid-info/logos-ui'],
|
|
trailingSlash: false,
|
|
turbopack: {
|
|
root: workspaceRoot,
|
|
},
|
|
}
|
|
|
|
export default withNextIntl(nextConfig)
|