diff --git a/lawfirm-demos/demo-1/next.config.ts b/lawfirm-demos/demo-1/next.config.ts index e178366..81c3944 100644 --- a/lawfirm-demos/demo-1/next.config.ts +++ b/lawfirm-demos/demo-1/next.config.ts @@ -1,11 +1,11 @@ import type {NextConfig} from "next"; -// const isProd = process.env.NODE_ENV === 'production'; +const isProd = process.env.NODE_ENV === 'production'; const nextConfig: NextConfig = { output: 'standalone', - // basePath: isProd ? '/lawfirm-demos/demo1' : '', - // assetPrefix: isProd ? '/lawfirm-demos/demo1' : '', + basePath: isProd ? '/lawfirm/demo1' : '', + assetPrefix: isProd ? '/lawfirm/demo1' : '', }; export default nextConfig; diff --git a/main-website/app/data/demos.ts b/main-website/app/data/demos.ts index 756ae39..b4aa916 100644 --- a/main-website/app/data/demos.ts +++ b/main-website/app/data/demos.ts @@ -8,7 +8,7 @@ export const demoCategories = [ items: [ { name: 'Anwaltskanzlei Demo 1', - url: isProd ? '/lawfirm-demos/demo1/' : `${BASE_URL}:25601`, + url: isProd ? '/lawfirm/demo1' : `${BASE_URL}:25601`, preview: '/previews/lawfirm-1.png', description: [ 'Modernes Design', @@ -16,32 +16,32 @@ export const demoCategories = [ 'Optimiert für Rechtsanwälte', ], }, - { - name: 'Anwaltskanzlei Demo 2', - url: isProd ? '/lawfirm-demos/demo2/' : `${BASE_URL}:25602`, - preview: '/previews/lawfirm-1.png', - description: [ - 'Modernes Design', - 'Dunkles Layout', - 'Optimiert für Rechtsanwälte', - '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', - ], - }, + // { + // name: 'Anwaltskanzlei Demo 2', + // url: isProd ? '/lawfirm/demo2/' : `${BASE_URL}:25602`, + // preview: '/previews/lawfirm-1.png', + // description: [ + // 'Modernes Design', + // 'Dunkles Layout', + // 'Optimiert für Rechtsanwälte', + // 'Optimiert für Rechtsanwälte 1', + // ], + // }, ], }, + // { + // 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', + // ], + // }, + // ], + // }, ] \ No newline at end of file diff --git a/nginx.conf b/nginx.conf index 9ea08af..ff5e461 100644 --- a/nginx.conf +++ b/nginx.conf @@ -21,7 +21,7 @@ http { proxy_set_header X-Forwarded-Proto $scheme; } - location /lawfirm-demos/demo1/ { + location /lawfirm/demo1 { proxy_pass http://ld1:3000/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr;