Refactor imports in Astro project
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
---
|
||||
import Layout from "../layouts/Layout.astro";
|
||||
import { getPosts } from "../utils/payload";
|
||||
import Layout from "src/layouts/Layout.astro";
|
||||
import { getPosts } from "src/utils/payload";
|
||||
|
||||
const posts = await getPosts();
|
||||
---
|
||||
|
@ -1,8 +1,8 @@
|
||||
---
|
||||
import Layout from "../../layouts/Layout.astro";
|
||||
import Content from "../../components/Content.astro";
|
||||
import type { Post } from "../../types";
|
||||
import { getPost, getPosts } from "../../utils/payload";
|
||||
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";
|
||||
|
||||
export async function getStaticPaths() {
|
||||
const posts = await getPosts();
|
||||
|
Reference in New Issue
Block a user