mirror of
https://github.com/formbricks/formbricks.git
synced 2025-12-30 18:30:32 -06:00
* remove explicit CSRF-token handling * use NEXTAUTH_SECRET secret to better comply with nextAuth standards * update next.js and nextAuth * remove ECR github action * add name to mail-from
37 lines
1015 B
JavaScript
37 lines
1015 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
var path = require("path");
|
|
|
|
const nextConfig = {
|
|
reactStrictMode: false,
|
|
serverRuntimeConfig: {
|
|
// Will only be available on the server side
|
|
nextauthSecret: process.env.NEXTAUTH_SECRET,
|
|
nextauthUrl: process.env.NEXTAUTH_URL,
|
|
mailFrom: process.env.MAIL_FROM,
|
|
smtpHost: process.env.SMTP_HOST,
|
|
smtpPort: process.env.SMTP_PORT,
|
|
smtpUser: process.env.SMTP_USER,
|
|
smtpPassword: process.env.SMTP_PASSWORD,
|
|
smtpSecureEnabled: process.env.SMTP_SECURE_ENABLED,
|
|
},
|
|
publicRuntimeConfig: {
|
|
// Will be available on both server and client
|
|
},
|
|
async redirects() {
|
|
return [
|
|
{
|
|
source: "/",
|
|
destination: "/forms/",
|
|
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;
|