mirror of
https://github.com/theoludwig/theoludwig.git
synced 2025-09-11 23:09:22 +02:00
chore: clean up
This commit is contained in:
37
apps/website/next.config.ts
Normal file
37
apps/website/next.config.ts
Normal file
@@ -0,0 +1,37 @@
|
||||
import { LOCALE_DEFAULT } from "@repo/utils/constants"
|
||||
import type { NextConfig } from "next"
|
||||
import createNextIntlPlugin from "next-intl/plugin"
|
||||
import path from "node:path"
|
||||
|
||||
const IS_STANDALONE = process.env.IS_STANDALONE === "true"
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
output: IS_STANDALONE ? "standalone" : undefined,
|
||||
typedRoutes: true,
|
||||
images: {
|
||||
unoptimized: true,
|
||||
},
|
||||
eslint: {
|
||||
ignoreDuringBuilds: true,
|
||||
},
|
||||
typescript: {
|
||||
ignoreBuildErrors: true,
|
||||
},
|
||||
}
|
||||
|
||||
const withNextIntl = createNextIntlPlugin({
|
||||
experimental: {
|
||||
createMessagesDeclaration: path.join(
|
||||
process.cwd(),
|
||||
"..",
|
||||
"..",
|
||||
"packages",
|
||||
"i18n",
|
||||
"src",
|
||||
"translations",
|
||||
`${LOCALE_DEFAULT}.json`,
|
||||
),
|
||||
},
|
||||
})
|
||||
|
||||
export default withNextIntl(nextConfig)
|
Reference in New Issue
Block a user