43 lines
786 B
JavaScript
43 lines
786 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'i.ytimg.com',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'img.youtube.com',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'i9.ytimg.com',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: '**.ytimg.com',
|
|
},
|
|
],
|
|
},
|
|
experimental: {
|
|
serverActions: {
|
|
bodySizeLimit: '2mb',
|
|
},
|
|
},
|
|
webpack: (config, { isServer }) => {
|
|
if (!isServer) {
|
|
config.resolve.fallback = {
|
|
...config.resolve.fallback,
|
|
fs: false,
|
|
path: false,
|
|
crypto: false,
|
|
}
|
|
}
|
|
return config
|
|
},
|
|
output: 'standalone',
|
|
}
|
|
|
|
module.exports = nextConfig
|