fix(next): disable trailingSlash to restore API route matching for /api/auth/*
This commit is contained in:
parent
91b32e8a48
commit
163ae0f5c4
@ -48,7 +48,7 @@ const shouldUseStaticExport = process.env.NEXT_SHOULD_EXPORT === 'true'
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
...(shouldUseStaticExport ? { output: 'export' } : {}),
|
||||
trailingSlash: true,
|
||||
trailingSlash: false,
|
||||
reactStrictMode: true,
|
||||
compress: false, // 压缩交给 Nginx,省 Node CPU
|
||||
images: { unoptimized: true }, // 关闭服务端图片处理
|
||||
|
||||
Loading…
Reference in New Issue
Block a user