add loading and optimize query using cache and pwa
This commit is contained in:
@@ -3,6 +3,10 @@ import type { NextConfig } from "next";
|
||||
const nextConfig: NextConfig = {
|
||||
images: {
|
||||
dangerouslyAllowSVG: true,
|
||||
// AVIF didahulukan — ~30% lebih kecil dari WebP, didukung browser modern.
|
||||
formats: ["image/avif", "image/webp"],
|
||||
// Cache hasil optimasi minimal 1 hari supaya tidak re-optimize tiap request.
|
||||
minimumCacheTTL: 86400,
|
||||
remotePatterns: [
|
||||
{
|
||||
protocol: "https",
|
||||
|
||||
Reference in New Issue
Block a user