-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
89 lines (84 loc) · 2.13 KB
/
next.config.js
File metadata and controls
89 lines (84 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/** @type {import('next').NextConfig} */
const nextConfig = {
// Disable strict mode to help with hydration errors
reactStrictMode: false,
// Configure external packages (including Prisma for serverless)
serverExternalPackages: ["pptxgenjs", "@prisma/client", "prisma"],
// Configure image domains with remotePatterns
images: {
remotePatterns: [
// Uploadcare domains (DEPRECATED - kept for backward compatibility with existing images)
// New uploads use Vercel Blob Storage
{
protocol: "https",
hostname: "ucarecdn.com",
},
{
protocol: "https",
hostname: "*.ucarecdn.com",
},
{
protocol: "https",
hostname: "ucarecdn.net",
},
{
protocol: "https",
hostname: "*.ucarecdn.net",
},
// Vercel Blob Storage
{
protocol: "https",
hostname: "ptictyardjhsymt6.public.blob.vercel-storage.com",
},
{
protocol: "https",
hostname: "**.public.blob.vercel-storage.com",
},
// OpenAI DALL-E
{
protocol: "https",
hostname: "oaidalleapiprodscus.blob.core.windows.net",
},
// Placeholder services
{
protocol: "https",
hostname: "via.placeholder.com",
},
{
protocol: "https",
hostname: "placehold.co",
},
// Cloudinary
{
protocol: "https",
hostname: "res.cloudinary.com",
},
// Unsplash
{
protocol: "https",
hostname: "plus.unsplash.com",
},
{
protocol: "https",
hostname: "images.unsplash.com",
},
],
// Add dangerouslyAllowSVG for potential SVG image support
dangerouslyAllowSVG: true,
},
// ESLint configuration to ignore certain errors during build
eslint: {
// Ignore ESLint errors during builds
ignoreDuringBuilds: true,
},
// Webpack configuration for non-Turbopack environments
webpack: (config) => {
config.resolve.fallback = {
...config.resolve.fallback,
fs: false,
path: false,
};
return config;
},
};
module.exports = nextConfig;