More groups WIP

This commit is contained in:
Darren Clarke 2025-07-07 20:02:54 +02:00
parent f20cd5a53c
commit 7be5cb1478
8 changed files with 488 additions and 261 deletions

View file

@ -1,36 +1,43 @@
/** @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: "SAMEORIGIN",
},
{
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/leafcutter-ui',
'@link-stack/opensearch-common',
'@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;
}