hexabot/frontend/next.config.mjs

31 lines
555 B
JavaScript
Raw 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-widget"])({
2024-09-17 16:12:20 +00:00
async rewrites() {
return [
{
source: "/config",
destination: "/api/config",
},
];
},
2024-09-27 08:44:08 +00:00
webpack: (config => {
config.watchOptions = {
poll: 1000,
aggregateTimeout: 300,
// ignored: ['**/node_modules']
}
return config
}),
2024-09-10 09:50:11 +00:00
publicRuntimeConfig: {
lang: {
default: "en",
},
},
output: "standalone",
});
export default nextConfig;