forked from recoupable/chat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.mjs
More file actions
70 lines (67 loc) · 1.82 KB
/
next.config.mjs
File metadata and controls
70 lines (67 loc) · 1.82 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
// next.config.mjs
import withPWA from "next-pwa";
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
transpilePackages: ["geist"],
serverExternalPackages: ['@browserbasehq/stagehand', 'playwright'],
experimental: {
optimizePackageImports: [
'lucide-react',
'@radix-ui/react-icons',
'@radix-ui/react-dialog',
'@radix-ui/react-dropdown-menu',
'@radix-ui/react-popover',
'@radix-ui/react-select',
'@radix-ui/react-tabs',
'@radix-ui/react-tooltip',
'date-fns',
],
},
images: {
domains: [
"i.imgur.com",
"ipfs.decentralized-content.com",
"pbs.twimg.com", // Twitter profile images
"abs.twimg.com", // Twitter media
"cdn.discordapp.com", // Discord
"scontent.xx.fbcdn.net", // Facebook
"scontent.cdninstagram.com", // Instagram
"instagram.fyvr4-1.fna.fbcdn.net", // Instagram
"platform-lookaside.fbsbx.com", // Facebook
"static-cdn.jtvnw.net", // Twitch
"yt3.ggpht.com", // YouTube
"i.ytimg.com", // YouTube
"avatars.githubusercontent.com", // GitHub
"example.com", // Example domain from our mock data
"arweave.net", // Arweave
"storage.googleapis.com", // Fal AI image hosting (backup)
],
remotePatterns: [
{
protocol: 'https',
hostname: '*.fal.media',
port: '',
pathname: '/**',
},
{
protocol: 'https',
hostname: 'ipfs.decentralized-content.com',
port: '',
pathname: '/**',
},
{
protocol: 'https',
hostname: 'arweave.net',
port: '',
pathname: '/**',
},
],
},
};
export default withPWA({
dest: "public",
register: true,
skipWaiting: true,
disable: process.env.NODE_ENV === "development",
})(nextConfig);