Spaces:
Build error
Build error
File size: 967 Bytes
0702eb8 caae15f b4297ca fdaf912 b4297ca 0702eb8 b4297ca 0702eb8 fdaf912 |
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 |
/** @type {import('next').NextConfig} */
const nextConfig = {
// experimental: {
// serverComponentsExternalPackages: ["llamaindex"],
// },
images: {
remotePatterns: [
{
protocol: "https",
hostname: "*.googleusercontent.com",
port: "",
pathname: "**",
},
{
protocol: "https",
hostname: "i.imgur.com",
port: "",
pathname: "**",
},
{
protocol: "https",
hostname: "gravatar.com",
port: "",
pathname: "**",
}
]
},
compiler: {
// Enables the styled-components SWC transform
styledComponents: true
},
publicRuntimeConfig: {
serverActions: true,
},
webpack: (config, { isServer }) => {
if (!isServer) {
config.externals.push({ "bufferutil": "bufferutil", "utf-8-validate": "utf-8-validate", "supports-color": "supports-color" });
}
return config;
}
};
export default nextConfig;
|