khronoz's picture
V.0.3.0 (#28)
fdaf912 unverified
raw
history blame contribute delete
967 Bytes
/** @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;