Skip to content

Commit 305fcbc

Browse files
committed
fixes path resolution errors happening in production
1 parent 08dbdf8 commit 305fcbc

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

src/components/pages/About.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
import AsyncIframe from '@components/AsyncIframe.astro';
2+
import AsyncIframe from '../AsyncIframe.astro';
33
import { LinkButton } from '@astrojs/starlight/components';
44
import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro';
55

src/pages/about.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
import About from '@components/pages/About.astro';
2+
import AboutPage from '@components/pages/About.astro';
33
---
44

5-
<About />
5+
<AboutPage />

src/pages/en/about.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
import About from '@components/pages/About.astro';
2+
import AboutPage from '@components/pages/About.astro';
33
---
44

5-
<About />
5+
<AboutPage />

tsconfig.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
{
2-
"extends": "astro/tsconfigs/strict"
3-
}
2+
"extends": "astro/tsconfigs/strict",
3+
"compilerOptions": {
4+
"baseUrl": ".",
5+
"paths": {
6+
"@components/*": ["src/components/*"]
7+
}
8+
}
9+
}

0 commit comments

Comments
 (0)