34 lines
844 B
TypeScript
34 lines
844 B
TypeScript
import type { NextConfig } from "next"
|
|
|
|
const nextConfig: NextConfig = {
|
|
reactCompiler: {
|
|
compilationMode: "all"
|
|
},
|
|
cacheComponents: true,
|
|
output: process.env.DOCKER === "1" ? "standalone" : undefined,
|
|
typedRoutes: true,
|
|
experimental: {
|
|
browserDebugInfoInTerminal: true,
|
|
turbopackFileSystemCacheForDev: true
|
|
},
|
|
cacheLife: {
|
|
hypixelApi: {
|
|
stale: 1000 * 60,
|
|
revalidate: 1000 * 30,
|
|
expire: 1000 * 60 * 5
|
|
},
|
|
mojangApi: {
|
|
stale: 1000 * 60,
|
|
revalidate: 1000 * 30,
|
|
expire: 1000 * 60 * 5
|
|
},
|
|
playerWithGuild: {
|
|
stale: 1000 * 60 * 60 * 24,
|
|
revalidate: 1000 * 60 * 60 * 24,
|
|
expire: 1000 * 60 * 60 * 24 * 7
|
|
}
|
|
}
|
|
}
|
|
|
|
export default nextConfig
|