hexabot/frontend/next.config.mjs

32 lines
583 B
JavaScript
Raw Permalink Normal View History

2024-09-10 09:50:11 +00:00
/** @type {import('next').NextConfig} */
import withTM from "next-transpile-modules";
const nextConfig = withTM(["hexabot-chat-widget"])({
2024-09-17 16:12:20 +00:00
async rewrites() {
return [
{
source: "/config",
destination: "/api/config",
},
];
},
webpack(config) {
if (process.env.NODE_ENV === "development") {
config.watchOptions = {
poll: 1000,
aggregateTimeout: 300,
};
2024-09-27 08:44:08 +00:00
}
return config;
},
2024-09-10 09:50:11 +00:00
publicRuntimeConfig: {
lang: {
default: "en",
},
},
output: "standalone",
});
export default nextConfig;