mirror of
https://github.com/hexastack/hexabot
synced 2024-11-23 01:55:15 +00:00
32 lines
583 B
JavaScript
32 lines
583 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
import withTM from "next-transpile-modules";
|
|
|
|
const nextConfig = withTM(["hexabot-chat-widget"])({
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: "/config",
|
|
destination: "/api/config",
|
|
},
|
|
];
|
|
},
|
|
webpack(config) {
|
|
if (process.env.NODE_ENV === "development") {
|
|
config.watchOptions = {
|
|
poll: 1000,
|
|
aggregateTimeout: 300,
|
|
};
|
|
}
|
|
|
|
return config;
|
|
},
|
|
publicRuntimeConfig: {
|
|
lang: {
|
|
default: "en",
|
|
},
|
|
},
|
|
output: "standalone",
|
|
});
|
|
|
|
export default nextConfig;
|