UNPKG

brahma-trade-widget

Version:

A React component for trade automation within the Brahma ecosystem.

41 lines (37 loc) 841 B
/** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, images: { remotePatterns: [ { protocol: "https", hostname: "**", // Matches any domain }, ], }, compiler: { styledComponents: true, }, webpack: (config) => { config.externals.push("pino-pretty", "lokijs", "encoding") return config }, rewrites: async () => { return [ { source: "/ingest/static/:path*", destination: "https://eu-assets.i.posthog.com/static/:path*", }, { source: "/ingest/:path*", destination: "https://eu.i.posthog.com/:path*", }, { source: "/ingest/decide", destination: "https://eu.i.posthog.com/decide", }, ] }, skipTrailingSlashRedirect: true, } module.exports = nextConfig