diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 8231b09..2a85da6 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -8,7 +8,7 @@ interface Props { }[]; } -import data from "../config.json"; +import data from "@src/config.json"; const { navItems } = Astro.props; --- diff --git a/src/pages/about.astro b/src/pages/about.astro index 0d80007..1a1d5ef 100644 --- a/src/pages/about.astro +++ b/src/pages/about.astro @@ -3,7 +3,7 @@ import ContentLayout from '@layouts/ContentLayout.astro' import People from '@components/People.astro' import Organization from '@components/Organization.astro' -import data from "../config.json"; +import data from "@src/config.json"; ---
diff --git a/src/pages/index.astro b/src/pages/index.astro index 9b79a90..8106e86 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -2,7 +2,7 @@ import BaseLayout from '@layouts/BaseLayout.astro'; import Hero from '@components/Hero.astro'; import Globe from '@components/Globe.astro'; -import data from "../config.json"; +import data from "@src/config.json"; --- diff --git a/tsconfig.json b/tsconfig.json index 5e113e4..3ecffc1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,8 @@ "baseUrl": ".", "paths": { "@components/*": ["src/components/*"], - "@layouts/*": ["src/layouts/*"] + "@layouts/*": ["src/layouts/*"], + "@src/*": ["src/*"] } } } \ No newline at end of file