Skip to content

Commit f5d884e

Browse files
committed
fix: issues
Signed-off-by: Gašper Grom <[email protected]>
1 parent 91a607d commit f5d884e

File tree

2 files changed

+29
-27
lines changed

2 files changed

+29
-27
lines changed

frontend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG NODE_VERSION=20
1+
ARG NODE_VERSION=22
22
ARG APP_ENV=production
33
ARG NUXT_REDIS_URL
44

frontend/composables/useRichSchema.ts

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,37 @@
22
// SPDX-License-Identifier: MIT
33

44
import {
5-
defineWebSite,
6-
defineWebApplication,
7-
useSchemaOrg,
5+
defineWebSite,
6+
defineWebApplication,
7+
useSchemaOrg,
8+
useRuntimeConfig
89
} from '#imports';
910

1011
export function useRichSchema() {
11-
const baseUrl = 'https://insights.linuxfoundation.org';
12+
const config = useRuntimeConfig();
13+
const baseUrl = config.public.appUrl;
1214

13-
const addSitewideSchema = () => {
14-
useSchemaOrg([
15-
defineWebSite({
16-
name: 'LFX Insights',
17-
url: baseUrl,
18-
}),
19-
defineWebApplication({
20-
name: 'LFX Insights',
21-
applicationCategory: 'BusinessApplication',
22-
operatingSystem: 'Web',
23-
url: baseUrl,
24-
offers: {
25-
'@type': 'Offer',
26-
price: '0',
27-
priceCurrency: 'USD',
28-
},
29-
}),
30-
]);
31-
};
15+
const addSitewideSchema = () => {
16+
useSchemaOrg([
17+
defineWebSite({
18+
name: 'LFX Insights',
19+
url: baseUrl,
20+
}),
21+
defineWebApplication({
22+
name: 'LFX Insights',
23+
applicationCategory: 'BusinessApplication',
24+
operatingSystem: 'Web',
25+
url: baseUrl,
26+
offers: {
27+
'@type': 'Offer',
28+
price: 0,
29+
priceCurrency: 'USD',
30+
},
31+
}),
32+
]);
33+
};
3234

33-
return {
34-
addSitewideSchema,
35-
};
35+
return {
36+
addSitewideSchema,
37+
};
3638
}

0 commit comments

Comments
 (0)