chore: Update next.config.js and features.tsx

This commit is contained in:
mauro-balades
2024-09-01 00:06:58 +02:00
parent 42d0996272
commit 1c181b972f
2 changed files with 10 additions and 6 deletions

View File

@@ -1,7 +1,6 @@
const createNextIntlPlugin = require('next-intl/plugin');
const { PHASE_DEVELOPMENT_SERVER } = require('next/constants')
const {setupDevPlatform} = require('@cloudflare/next-on-pages/next-dev')
const withNextIntl = createNextIntlPlugin();
@@ -17,9 +16,12 @@ const nextConfig = (phase, { defaultConfig }) => {
{
protocol: "https",
hostname: "cdn.jsdelivr.net",
port: '',
pathname: '/gh/zen-browser/**',
}
],
domains: ['cdn.jsdelivr.net', "raw.githubusercontent.com"], // Allow images from jsDelivr
formats: ["image/png", "image/jpeg", "image/svg+xml", "image/webp"],
domains: ['localhost', 'cdn.jsdelivr.net', "raw.githubusercontent.com"], // Allow images from jsDelivr
},
experimental: {
serverActions: {