From f8ce4bd8719a80bd907ce574c3c8528022a56415 Mon Sep 17 00:00:00 2001 From: simplr-sh Date: Mon, 6 Jan 2025 10:38:01 +0530 Subject: [PATCH] Refactor next.config.mjs for improved readability and consistency - Reformatted the structure of the `next.config.mjs` file for better readability. - Ensured consistent indentation and spacing throughout the configuration. - No functional changes were made; the configuration remains the same. --- next.config.mjs | 164 ++++++++++++++++++++++++------------------------ 1 file changed, 82 insertions(+), 82 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index 5a86323..6fb65c5 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -9,86 +9,86 @@ jiti.import('./env/client') /** @type {import('next').NextConfig} */ const nextConfig = { - transpilePackages: ['geist'], - async headers() { - return [ - { - source: '/(.*)', - headers: [ - { - key: 'X-Content-Type-Options', - value: 'nosniff', - }, - { - key: 'X-Frame-Options', - value: 'DENY', - }, - { - key: 'Referrer-Policy', - value: 'strict-origin-when-cross-origin', - }, - ], - }, - ] - }, - images: { - dangerouslyAllowSVG: true, - remotePatterns: [ - { - protocol: 'https', - hostname: 'www.google.com', - port: '', - pathname: '/s2/favicons', - }, - { - protocol: 'https', - hostname: 'api.producthunt.com', - port: '', - pathname: '/widgets/embed-image/v1/featured.svg', - }, - { - protocol: 'https', - hostname: 'metwm7frkvew6tn1.public.blob.vercel-storage.com', - port: '', - pathname: '**', - }, - // upload.wikimedia.org - { - protocol: 'https', - hostname: 'upload.wikimedia.org', - port: '', - pathname: '**', - }, - // media.theresanaiforthat.com - { - protocol: 'https', - hostname: 'media.theresanaiforthat.com', - port: '', - pathname: '**', - }, - // www.uneed.best - { - protocol: 'https', - hostname: 'www.uneed.best', - port: '', - pathname: '**', - }, - // image.tmdb.org - { - protocol: 'https', - hostname: 'image.tmdb.org', - port: '', - pathname: '/t/p/original/**', - }, - // image.tmdb.org - { - protocol: 'https', - hostname: 'image.tmdb.org', - port: '', - pathname: '/**', - }, - ], - }, -} + transpilePackages: ["geist"], + async headers() { + return [ + { + source: '/(.*)', + headers: [ + { + key: 'X-Content-Type-Options', + value: 'nosniff', + }, + { + key: 'X-Frame-Options', + value: 'DENY', + }, + { + key: 'Referrer-Policy', + value: 'strict-origin-when-cross-origin', + }, + ], + }, + ] + }, + images: { + dangerouslyAllowSVG: true, + remotePatterns: [ + { + protocol: 'https', + hostname: 'www.google.com', + port: '', + pathname: '/s2/favicons', + }, + { + protocol: 'https', + hostname: 'api.producthunt.com', + port: '', + pathname: '/widgets/embed-image/v1/featured.svg', + }, + { + protocol: 'https', + hostname: 'metwm7frkvew6tn1.public.blob.vercel-storage.com', + port: '', + pathname: "**" + }, + // upload.wikimedia.org + { + protocol: 'https', + hostname: 'upload.wikimedia.org', + port: '', + pathname: '**' + }, + // media.theresanaiforthat.com + { + protocol: 'https', + hostname: 'media.theresanaiforthat.com', + port: '', + pathname: '**' + }, + // www.uneed.best + { + protocol: 'https', + hostname: 'www.uneed.best', + port: '', + pathname: '**' + }, + // image.tmdb.org + { + protocol: 'https', + hostname: 'image.tmdb.org', + port: '', + pathname: '/t/p/original/**' + }, + // image.tmdb.org + { + protocol: 'https', + hostname: 'image.tmdb.org', + port: '', + pathname: '/**' + }, + ] + }, +}; -export default nextConfig +export default nextConfig;