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