File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ const IconLink = ({
3434 </ Link >
3535) ;
3636
37- const { BASE_URL } = getConfig ( ) ;
37+ const { VITE_BASE_URL } = getConfig ( ) ;
3838
3939interface HeroBgContainerProps {
4040 className ?: string ;
@@ -45,7 +45,7 @@ const HeroBgContainer: React.FC<HeroBgContainerProps> = ({
4545 className,
4646 children,
4747} ) => {
48- const imagePath = `${ BASE_URL } /images/portrait.webp` ;
48+ const imagePath = `${ VITE_BASE_URL } /images/portrait.webp` ;
4949 return (
5050 < div
5151 className = { `relative bg-clip-border bg-no-repeat bg-cover bg-[calc(50%+30px)_center] xl:bg-center ${ className } ` }
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import getConfig from "../Components/getConfig";
1010import { BiWrench } from "react-icons/bi" ;
1111import { pdfPath } from "../contentDb" ;
1212
13- const { BASE_URL } = getConfig ( ) ;
13+ const { BASE_URL , VITE_BASE_URL } = getConfig ( ) ;
1414
1515const Icon = ( {
1616 Cmp,
@@ -56,7 +56,7 @@ const Menu = () => {
5656 < Icon Cmp = { PiGraduationCap } isActive = { isActive ( "/education" ) } />
5757 </ Link >
5858 </ div >
59- < a href = { pdfPath } target = "_blank" >
59+ < a href = { ` ${ VITE_BASE_URL } ${ pdfPath } ` } target = "_blank" >
6060 < Icon Cmp = { MdOutlineFileDownload } />
6161 </ a >
6262 </ div >
Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ import {fullName} from "../contentDb";
55const { BASE_URL , VITE_APP_NAME } = getConfig ( ) ;
66
77const Metadata = ( ) => {
8- if ( ! BASE_URL ) throw new Error ( "root: BASE_URL is undefined" ) ;
8+ if ( BASE_URL === undefined )
9+ throw new Error ( "Metadata: BASE_URL is undefined" ) ;
910 if ( ! VITE_APP_NAME ) throw new Error ( "root: VITE_APP_NAME is undefined" ) ;
1011
1112 return (
Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ import Hero from "../AppComponents/Hero";
77import getConfig from "./getConfig" ;
88import useScrollToTop from "./useScrollToTop" ;
99
10- const { BASE_URL } = getConfig ( ) ;
10+ const { VITE_BASE_URL } = getConfig ( ) ;
1111
1212const WrapRoute : React . FC = ( ) => {
1313 useTrackPageViewsInGA ( ) ;
1414 const scrollableRef = useRef < HTMLDivElement > ( null ) ;
1515
1616 useScrollToTop ( scrollableRef ) ;
17- const imgPath = `${ BASE_URL } /images/bg.webp` ;
17+ const imgPath = `${ VITE_BASE_URL } /images/bg.webp` ;
1818
1919 return (
2020 < BgContainer imagePath = { imgPath } className = "flex justify-center bg-[300%]" >
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ export const linkedIn =
5454 "https://www.linkedin.com/in/hanna-gaudasinska-zapasnik" ;
5555export const github = "https://github.com/HGZdev" ;
5656
57- export const pdfPath = "public /docs/Hanna_Gaudasinska_Zapasnik_CV.pdf" ;
57+ export const pdfPath = "/docs/Hanna_Gaudasinska_Zapasnik_CV.pdf" ;
5858
5959export const aboutText = (
6060 < >
You can’t perform that action at this time.
0 commit comments