fix: Use NextJS recommended config for styled-components

This commit is contained in:
busybox11
2024-08-24 01:43:09 +02:00
parent 96e64d5759
commit de147a219f
3 changed files with 38 additions and 6 deletions

View File

@@ -3,17 +3,19 @@ const nextConfig = {
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'raw.githubusercontent.com',
protocol: "https",
hostname: "raw.githubusercontent.com",
},
],
},
experimental: {
serverActions: {
// edit: updated to new key. Was previously `allowedForwardedHosts`
allowedOrigins: ['localhost:3000', 'get-zen.vercel.app'],
allowedOrigins: ["localhost:3000", "get-zen.vercel.app"],
},
},
compiler: {
styledComponents: true,
},
};