Skip to content

Commit

Permalink
fix public / assets vue shit
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesbrandenburger committed Jan 18, 2024
1 parent f8b241a commit f283d55
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
13 changes: 12 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,18 @@ services:
environment:
- VITE_TENANT=default
- VITE_TENANT_CLIENT_ID=e9fdb985-9173-4e01-9d73-ac2d60d1dc8e
- VITE_TENANT_LOGO=src/assets/default-logo.png
- VITE_TENANT_LOGO=/default-logo.png
- VITE_TENANT_BACKGROUNDCOLOR=#FFFFFF
- VITE_BACKEND_URL=http://localhost/api
frontend-adac:
build:
context: ./frontend
ports:
- "5174:3000"
environment:
- VITE_TENANT=adac
- VITE_TENANT_CLIENT_ID=e9fdb985-9173-4e01-9d73-ac2d60d1dc8e
- VITE_TENANT_LOGO=/adac-logo.png
- VITE_TENANT_BACKGROUNDCOLOR=#FFFF00
- VITE_BACKEND_URL=http://localhost/api
pin-service:
Expand Down
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ let username = computed(() => {
let tenantBackgroundColor = ref(TENANT_BACKGROUNDCOLOR || '#ffffff')
console.log('TENANT: ' + TENANT + ' PATH: ' + PATH, 'TENANT_BACKGROUNDCOLOR: ' + TENANT_BACKGROUNDCOLOR)
console.log('TENANT: ' + TENANT + ' PATH: ' + PATH, 'TENANT_BACKGROUNDCOLOR: ' + TENANT_BACKGROUNDCOLOR, 'TENANT_LOGO: ' + TENANT_LOGO)
console.log(document.cookie)
</script>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/js/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const BACKEND_URL = import.meta.env.VITE_BACKEND_URL;
const TENANT = import.meta.env.VITE_TENANT || 'default';
const TENANT_CLIENT_ID = import.meta.env.VITE_TENANT_CLIENT_ID;

const TENANT_LOGO = import.meta.env.VITE_TENANT_LOGO || 'src/assets/default-logo.png';
const TENANT_LOGO = import.meta.env.VITE_TENANT_LOGO || 'public/default-logo.png';
const TENANT_BACKGROUNDCOLOR = import.meta.env.VITE_TENANT_BACKGROUNDCOLOR;

const PATH = TENANT == 'default' ? '' : `/${TENANT}`;
Expand Down

0 comments on commit f283d55

Please sign in to comment.