Update URLs and paths for lawfirm demo structure

This commit is contained in:
2025-06-07 22:04:30 +02:00
parent c0dc4ed296
commit 7fba89fa28
3 changed files with 31 additions and 31 deletions

View File

@@ -1,11 +1,11 @@
import type {NextConfig} from "next"; import type {NextConfig} from "next";
// const isProd = process.env.NODE_ENV === 'production'; const isProd = process.env.NODE_ENV === 'production';
const nextConfig: NextConfig = { const nextConfig: NextConfig = {
output: 'standalone', output: 'standalone',
// basePath: isProd ? '/lawfirm-demos/demo1' : '', basePath: isProd ? '/lawfirm/demo1' : '',
// assetPrefix: isProd ? '/lawfirm-demos/demo1' : '', assetPrefix: isProd ? '/lawfirm/demo1' : '',
}; };
export default nextConfig; export default nextConfig;

View File

@@ -8,7 +8,7 @@ export const demoCategories = [
items: [ items: [
{ {
name: 'Anwaltskanzlei Demo 1', name: 'Anwaltskanzlei Demo 1',
url: isProd ? '/lawfirm-demos/demo1/' : `${BASE_URL}:25601`, url: isProd ? '/lawfirm/demo1' : `${BASE_URL}:25601`,
preview: '/previews/lawfirm-1.png', preview: '/previews/lawfirm-1.png',
description: [ description: [
'Modernes Design', 'Modernes Design',
@@ -16,32 +16,32 @@ export const demoCategories = [
'Optimiert für Rechtsanwälte', 'Optimiert für Rechtsanwälte',
], ],
}, },
{ // {
name: 'Anwaltskanzlei Demo 2', // name: 'Anwaltskanzlei Demo 2',
url: isProd ? '/lawfirm-demos/demo2/' : `${BASE_URL}:25602`, // url: isProd ? '/lawfirm/demo2/' : `${BASE_URL}:25602`,
preview: '/previews/lawfirm-1.png', // preview: '/previews/lawfirm-1.png',
description: [ // description: [
'Modernes Design', // 'Modernes Design',
'Dunkles Layout', // 'Dunkles Layout',
'Optimiert für Rechtsanwälte', // 'Optimiert für Rechtsanwälte',
'Optimiert für Rechtsanwälte 1', // 'Optimiert für Rechtsanwälte 1',
], // ],
}, // },
],
},
{
label: 'SaaS',
items: [
{
name: 'SaaS Landing Page',
url: isProd ? '/lawfirm-demos/demo2/' : `${BASE_URL}:25801`,
preview: '/previews/saas-1.png',
description: [
'Klares und minimales UI',
'Produktorientiertes Layout',
'Responsive + animiert',
],
},
], ],
}, },
// {
// label: 'SaaS',
// items: [
// {
// name: 'SaaS Landing Page',
// url: isProd ? '/lawfirms/demo2/' : `${BASE_URL}:25801`,
// preview: '/previews/saas-1.png',
// description: [
// 'Klares und minimales UI',
// 'Produktorientiertes Layout',
// 'Responsive + animiert',
// ],
// },
// ],
// },
] ]

View File

@@ -21,7 +21,7 @@ http {
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
} }
location /lawfirm-demos/demo1/ { location /lawfirm/demo1 {
proxy_pass http://ld1:3000/; proxy_pass http://ld1:3000/;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;