-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.mjs
50 lines (48 loc) · 1.27 KB
/
next.config.mjs
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
import BuilderDevTools from "@builder.io/dev-tools/next";
import { withHydrationOverlay } from "@builder.io/react-hydration-overlay/next";
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
dangerouslyAllowSVG: true,
remotePatterns: [
{
protocol: 'https',
hostname: 'cdn.builder.io',
port: '',
pathname: '/**',
},
{
protocol: 'https',
hostname: 'shopifycdn.com',
port: '',
pathname: '/**',
},
{
protocol: 'https',
hostname: 'cdn.shopify.com',
port: '',
pathname: '/**',
},
{
protocol: 'https',
hostname: 'burst.shopifycdn.com',
port: '',
pathname: '/**',
},
],
},
experimental: {
serverComponentsExternalPackages: ["isolated-vm"],
},
};
// export default nextConfig;
const configWithOverlay = BuilderDevTools()(
withHydrationOverlay({
/**
* Optional: `appRootSelector` is the selector for the root element of your app. By default, it is `#__next` which works
* for Next.js apps with pages directory. If you are using the app directory, you should change this to `main`.
*/
appRootSelector: "main",
})(nextConfig)
);
export default configWithOverlay;