260223:1415 20260223 nextJS & nestJS Best pratices
All checks were successful
Build and Deploy / deploy (push) Successful in 4m44s
All checks were successful
Build and Deploy / deploy (push) Successful in 4m44s
This commit is contained in:
@@ -19,6 +19,8 @@ const nextConfig = {
|
||||
],
|
||||
// ลดขนาดไฟล์รูปภาพที่จะถูก optimize
|
||||
deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
|
||||
// Cache optimized images for 24h (reduces re-optimization on containers)
|
||||
minimumCacheTTL: 86400,
|
||||
},
|
||||
|
||||
// 4. (Optional) Rewrites: กรณีต้องการ Proxy API ผ่าน Next.js เพื่อเลี่ยง CORS ใน Dev
|
||||
@@ -33,7 +35,7 @@ const nextConfig = {
|
||||
]
|
||||
},
|
||||
*/
|
||||
|
||||
|
||||
// 5. Security Headers (แนะนำ)
|
||||
async headers() {
|
||||
return [
|
||||
@@ -62,4 +64,4 @@ const nextConfig = {
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
export default nextConfig;
|
||||
|
||||
Reference in New Issue
Block a user