fix: revert to public/ brand assets — DS exports field blocks imports
All checks were successful
CI / cleanup-branch (push) Has been skipped
CI / build (push) Successful in 1m10s
CI / docker (push) Successful in 2m7s
CI / deploy (push) Successful in 51s
CI / deploy-feature (push) Has been skipped

The @cameleer/design-system package.json exports field doesn't include
assets/, causing production build failures. Copy PNGs to public/ and
reference via basePath until DS adds asset exports.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-06 22:41:20 +02:00
parent 281e168790
commit 45cccdbd8a
5 changed files with 3 additions and 4 deletions

View File

@@ -95,6 +95,7 @@ public class SecurityConfig {
"/index.html", "/index.html",
"/config.js", "/config.js",
"/favicon-*.png", "/favicon-*.png",
"/cameleer3-logo-*.png",
"/assets/**" "/assets/**"
).permitAll() ).permitAll()

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@@ -4,7 +4,6 @@ import { useAuthStore } from './auth-store';
import { api } from '../api/client'; import { api } from '../api/client';
import { config } from '../config'; import { config } from '../config';
import { Card, Input, Button, Alert, FormField } from '@cameleer/design-system'; import { Card, Input, Button, Alert, FormField } from '@cameleer/design-system';
import brandLogo from '@cameleer/design-system/assets/cameleer3-192.png';
import styles from './LoginPage.module.css'; import styles from './LoginPage.module.css';
interface OidcInfo { interface OidcInfo {
@@ -132,7 +131,7 @@ export function LoginPage() {
<Card className={styles.card}> <Card className={styles.card}>
<div className={styles.loginForm}> <div className={styles.loginForm}>
<div className={styles.logo}> <div className={styles.logo}>
<img src={brandLogo} alt="" className={styles.logoImg} /> <img src={`${config.basePath}cameleer3-logo-192.png`} alt="" className={styles.logoImg} />
cameleer3 cameleer3
</div> </div>
<p className={styles.subtitle}>{subtitle}</p> <p className={styles.subtitle}>{subtitle}</p>

View File

@@ -16,7 +16,6 @@ import {
useStarred, useStarred,
} from '@cameleer/design-system'; } from '@cameleer/design-system';
import type { SearchResult, SidebarTreeNode } from '@cameleer/design-system'; import type { SearchResult, SidebarTreeNode } from '@cameleer/design-system';
import sidebarLogo from '@cameleer/design-system/assets/cameleer3-48.png';
import { Box, Settings, FileText, ChevronRight, Square, Pause, Star, X } from 'lucide-react'; import { Box, Settings, FileText, ChevronRight, Square, Pause, Star, X } from 'lucide-react';
import { useQueryClient } from '@tanstack/react-query'; import { useQueryClient } from '@tanstack/react-query';
import { useRouteCatalog } from '../api/queries/catalog'; import { useRouteCatalog } from '../api/queries/catalog';
@@ -626,7 +625,7 @@ function LayoutContent() {
// --- Render ------------------------------------------------------- // --- Render -------------------------------------------------------
const camelLogo = ( const camelLogo = (
<img src={sidebarLogo} alt="" style={{ width: 28, height: 28 }} /> <img src={`${config.basePath}cameleer3-logo-48.png`} alt="" style={{ width: 28, height: 28 }} />
); );
const sidebarElement = ( const sidebarElement = (