Initial commit: spreewaldzeit + Dockerfile for Coolify (Next.js + Prisma/SQLite)
This commit is contained in:
18
next.config.js
Normal file
18
next.config.js
Normal file
@@ -0,0 +1,18 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
reactStrictMode: true,
|
||||
images: {
|
||||
formats: ["image/avif", "image/webp"],
|
||||
// Only generate these widths — fewer variants = less processing
|
||||
deviceSizes: [640, 1080, 1920],
|
||||
imageSizes: [256, 512],
|
||||
// Cache optimised images for 30 days
|
||||
minimumCacheTTL: 60 * 60 * 24 * 30,
|
||||
remotePatterns: [
|
||||
{ protocol: "https", hostname: "images.unsplash.com" },
|
||||
{ protocol: "https", hostname: "plus.unsplash.com" },
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
module.exports = nextConfig;
|
||||
Reference in New Issue
Block a user