Refactor import statements to use absolute paths

This commit is contained in:
Max Schmidt
2023-06-17 12:21:29 +02:00
parent 7afdc0dd92
commit 3a2ec92cde
5 changed files with 12 additions and 9 deletions

View File

@ -1,6 +1,6 @@
---
import Layout from "src/layouts/Layout.astro";
import { getPosts } from "src/utils/payload";
import Layout from "@/layouts/Layout.astro";
import { getPosts } from "@/utils/payload";
const posts = await getPosts();
---

View File

@ -1,8 +1,8 @@
---
import Layout from "src/layouts/Layout.astro";
import Content from "src/components/Content.astro";
import type { Post } from "src/types";
import { getPost, getPosts } from "src/utils/payload";
import Layout from "@/layouts/Layout.astro";
import Content from "@/components/Content.astro";
import type { Post } from "@/types";
import { getPost, getPosts } from "@/utils/payload";
export async function getStaticPaths() {
const posts = await getPosts();