WhatsApp/Signal/Formstack/admin updates

This commit is contained in:
Darren Clarke 2025-11-21 14:55:28 +01:00
parent bcecf61a46
commit d0cc5a21de
451 changed files with 16139 additions and 39623 deletions

View file

@ -1,36 +1,41 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
basePath: '/link',
poweredByHeader: false,
transpilePackages: [
"@link-stack/leafcutter-ui",
"@link-stack/opensearch-common",
"@link-stack/ui",
"@link-stack/bridge-common",
"@link-stack/bridge-ui",
"mui-chips-input",
],
headers: async () => {
return [
{
source: "/((?!zammad).*)",
headers: [
{
key: "Strict-Transport-Security",
value: "max-age=63072000; includeSubDomains; preload",
},
{
key: "X-Frame-Options",
value: "DENY",
},
{
key: "X-Content-Type-Options",
value: "nosniff",
},
],
},
];
},
};
/** @type {(phase: string) => import('next').NextConfig} */
export default function () {
const base = {
basePath: '/link',
poweredByHeader: false,
transpilePackages: [
'@link-stack/ui',
'@link-stack/bridge-common',
'@link-stack/bridge-ui',
'mui-chips-input',
],
async headers() {
return [
{
source: '/((?!zammad).*)',
headers: [
{ key: 'Strict-Transport-Security', value: 'max-age=63072000; includeSubDomains; preload' },
{ key: 'X-Frame-Options', value: 'SAMEORIGIN' },
{ key: 'X-Content-Type-Options', value: 'nosniff' },
],
},
];
},
};
export default nextConfig;
/** dev-only extras */
if (process.env.NODE_ENV === 'development') {
return {
...base,
experimental: {
...(base.experimental ?? {}),
serverActions: {
allowedOrigins: ['localhost:8001'],
allowedForwardedHosts: ['localhost'],
},
},
};
}
return base;
}