File tree Expand file tree Collapse file tree 2 files changed +29
-27
lines changed
Expand file tree Collapse file tree 2 files changed +29
-27
lines changed Original file line number Diff line number Diff line change 1- ARG NODE_VERSION=20
1+ ARG NODE_VERSION=22
22ARG APP_ENV=production
33ARG NUXT_REDIS_URL
44
Original file line number Diff line number Diff line change 22// SPDX-License-Identifier: MIT
33
44import {
5- defineWebSite ,
6- defineWebApplication ,
7- useSchemaOrg ,
5+ defineWebSite ,
6+ defineWebApplication ,
7+ useSchemaOrg ,
8+ useRuntimeConfig
89} from '#imports' ;
910
1011export 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}
You can’t perform that action at this time.
0 commit comments