@@ -632,39 +632,41 @@ function CTA({children, icon, href}) {
632632 ) ;
633633}
634634
635- const reactConf2021Cover = '/images/home/conf2021/cover.svg' ;
636- const reactConf2019Cover = '/images/home/conf2019/cover.svg' ;
635+ const basePath = process . env . NEXT_PUBLIC_BASE_PATH || '' ;
636+
637+ const reactConf2021Cover = basePath + '/images/home/conf2021/cover.svg' ;
638+ const reactConf2019Cover = basePath + '/images/home/conf2019/cover.svg' ;
637639const communityImages = [
638640 {
639- src : '/images/home/community/react_conf_fun.webp' ,
641+ src : basePath + '/images/home/community/react_conf_fun.webp' ,
640642 alt : 'אנשים שרים קריוקי ב-React Conf' ,
641643 } ,
642644 {
643- src : '/images/home/community/react_india_sunil.webp' ,
645+ src : basePath + '/images/home/community/react_india_sunil.webp' ,
644646 alt : 'Sunil Pai מרצה ב-React India' ,
645647 } ,
646648 {
647- src : '/images/home/community/react_conf_hallway.webp' ,
649+ src : basePath + '/images/home/community/react_conf_hallway.webp' ,
648650 alt : 'שיחת מסדרון בין שני אנשים ב-React Conf' ,
649651 } ,
650652 {
651- src : '/images/home/community/react_india_hallway.webp' ,
653+ src : basePath + '/images/home/community/react_india_hallway.webp' ,
652654 alt : 'שיחת מסדרון ב-React India' ,
653655 } ,
654656 {
655- src : '/images/home/community/react_conf_elizabet.webp' ,
657+ src : basePath + '/images/home/community/react_conf_elizabet.webp' ,
656658 alt : 'Elizabet Oliveira מרצה ב-React Conf' ,
657659 } ,
658660 {
659- src : '/images/home/community/react_india_selfie.webp' ,
661+ src : basePath + '/images/home/community/react_india_selfie.webp' ,
660662 alt : 'אנשים מצלמים סלפי קבוצתי ב-React India' ,
661663 } ,
662664 {
663- src : '/images/home/community/react_conf_nat.webp' ,
665+ src : basePath + '/images/home/community/react_conf_nat.webp' ,
664666 alt : 'Nat Alison מרצה ב-React Conf' ,
665667 } ,
666668 {
667- src : '/images/home/community/react_india_team.webp' ,
669+ src : basePath + '/images/home/community/react_india_team.webp' ,
668670 alt : 'מארגנים שמברכים את המשתתפים ב-React India' ,
669671 } ,
670672] ;
@@ -1000,35 +1002,35 @@ function Example3() {
10001002 id : 'vids-0' ,
10011003 title : 'React: The Documentary' ,
10021004 description : 'סיפור המקור של React' ,
1003- image : '/images/home/videos/documentary.webp' ,
1005+ image : basePath + '/images/home/videos/documentary.webp' ,
10041006 url : 'https://www.youtube.com/watch?v=8pDqJVdNa44' ,
10051007 } ,
10061008 {
10071009 id : 'vids-1' ,
10081010 title : 'Rethinking Best Practices' ,
10091011 description : 'Pete Hunt (2013)' ,
1010- image : '/images/home/videos/rethinking.jpg' ,
1012+ image : basePath + '/images/home/videos/rethinking.jpg' ,
10111013 url : 'https://www.youtube.com/watch?v=x7cQ3mrcKaY' ,
10121014 } ,
10131015 {
10141016 id : 'vids-2' ,
10151017 title : 'Introducing React Native' ,
10161018 description : 'Tom Occhino (2015)' ,
1017- image : '/images/home/videos/rn.jpg' ,
1019+ image : basePath + '/images/home/videos/rn.jpg' ,
10181020 url : 'https://www.youtube.com/watch?v=KVZ-P-ZI6W4' ,
10191021 } ,
10201022 {
10211023 id : 'vids-3' ,
10221024 title : 'Introducing React Hooks' ,
10231025 description : 'Sophie Alpert and Dan Abramov (2018)' ,
1024- image : '/images/home/videos/hooks.jpg' ,
1026+ image : basePath + '/images/home/videos/hooks.jpg' ,
10251027 url : 'https://www.youtube.com/watch?v=V-QO-KO90iQ' ,
10261028 } ,
10271029 {
10281030 id : 'vids-4' ,
10291031 title : 'היכרות עם Server Components' ,
10301032 description : 'Dan Abramov and Lauren Tan (2020)' ,
1031- image : '/images/home/videos/rsc.jpg' ,
1033+ image : basePath + '/images/home/videos/rsc.jpg' ,
10321034 url : 'https://www.youtube.com/watch?v=TQQPAU21ZUw' ,
10331035 } ,
10341036 ] ;
@@ -2381,10 +2383,10 @@ function fetchTalks(confId) {
23812383 url : 'https://www.youtube.com/watch?v=FZ0cG47msEk&list=PLNG_1j3cPCaZZ7etkzWA7JfdmKWT0pMsa&index=1' ,
23822384 image : {
23832385 speakers : [
2384- '/images/home/conf2021/andrew.jpg' ,
2385- '/images/home/conf2021/lauren.jpg' ,
2386- '/images/home/conf2021/juan.jpg' ,
2387- '/images/home/conf2021/rick.jpg' ,
2386+ basePath + '/images/home/conf2021/andrew.jpg' ,
2387+ basePath + '/images/home/conf2021/lauren.jpg' ,
2388+ basePath + '/images/home/conf2021/juan.jpg' ,
2389+ basePath + '/images/home/conf2021/rick.jpg' ,
23882390 ] ,
23892391 } ,
23902392 } ,
@@ -2394,7 +2396,7 @@ function fetchTalks(confId) {
23942396 description : 'Shruti Kapoor' ,
23952397 url : 'https://www.youtube.com/watch?v=ytudH8je5ko&list=PLNG_1j3cPCaZZ7etkzWA7JfdmKWT0pMsa&index=2' ,
23962398 image : {
2397- speakers : [ '/images/home/conf2021/shruti.jpg' ] ,
2399+ speakers : [ basePath + '/images/home/conf2021/shruti.jpg' ] ,
23982400 } ,
23992401 } ,
24002402 {
@@ -2403,7 +2405,7 @@ function fetchTalks(confId) {
24032405 description : 'Shaundai Person' ,
24042406 url : 'https://www.youtube.com/watch?v=pj5N-Khihgc&list=PLNG_1j3cPCaZZ7etkzWA7JfdmKWT0pMsa&index=3' ,
24052407 image : {
2406- speakers : [ '/images/home/conf2021/shaundai.jpg' ] ,
2408+ speakers : [ basePath + '/images/home/conf2021/shaundai.jpg' ] ,
24072409 } ,
24082410 } ,
24092411 {
0 commit comments