more seeds
This commit is contained in:
@@ -20,6 +20,24 @@ const nextConfig = {
|
||||
hostname: 'picsum.photos',
|
||||
},
|
||||
],
|
||||
dangerouslyAllowSVG: true,
|
||||
contentSecurityPolicy: "default-src 'self'; script-src 'none'; sandbox;",
|
||||
contentDispositionType: 'inline',
|
||||
},
|
||||
async rewrites() {
|
||||
const rawBaseUrl =
|
||||
process.env.API_BASE_URL ??
|
||||
process.env.NEXT_PUBLIC_API_BASE_URL ??
|
||||
'http://localhost:3001';
|
||||
|
||||
const baseUrl = rawBaseUrl.endsWith('/') ? rawBaseUrl.slice(0, -1) : rawBaseUrl;
|
||||
|
||||
return [
|
||||
{
|
||||
source: '/api/media/:path*',
|
||||
destination: `${baseUrl}/media/:path*`,
|
||||
},
|
||||
];
|
||||
},
|
||||
typescript: {
|
||||
ignoreBuildErrors: false,
|
||||
|
||||
Reference in New Issue
Block a user