mirror of
https://github.com/formbricks/formbricks.git
synced 2025-12-30 18:30:32 -06:00
32 lines
733 B
JavaScript
32 lines
733 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
var path = require("path");
|
|
|
|
const nextConfig = {
|
|
reactStrictMode: false,
|
|
output: "standalone",
|
|
experimental: {
|
|
outputFileTracingRoot: path.join(__dirname, "../../"),
|
|
},
|
|
async redirects() {
|
|
return [
|
|
{
|
|
source: "/",
|
|
destination: "/forms/",
|
|
permanent: false,
|
|
},
|
|
{
|
|
source: "/forms/:id",
|
|
destination: "/forms/:id/form",
|
|
permanent: false,
|
|
},
|
|
];
|
|
},
|
|
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
|
|
config.resolve.alias["react"] = path.resolve("./node_modules/react");
|
|
// Important: return the modified config
|
|
return config;
|
|
},
|
|
};
|
|
|
|
module.exports = nextConfig;
|