refactor: update import alias in files

This commit is contained in:
satnaing
2025-02-25 20:17:30 +07:00
committed by Sat Naing
parent cd11b39d22
commit 53c79dd4c1
9 changed files with 18 additions and 18 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
import type { APIRoute } from "astro";
import { generateOgImageForSite } from "@utils/generateOgImages";
import { generateOgImageForSite } from "@/utils/generateOgImages";
export const GET: APIRoute = async () =>
new Response(await generateOgImageForSite(), {
+2 -2
View File
@@ -1,7 +1,7 @@
---
import { type CollectionEntry, getCollection } from "astro:content";
import PostDetails from "@layouts/PostDetails.astro";
import getSortedPosts from "@utils/getSortedPosts";
import PostDetails from "@/layouts/PostDetails.astro";
import getSortedPosts from "@/utils/getSortedPosts";
export interface Props {
post: CollectionEntry<"blog">;
+2 -2
View File
@@ -1,7 +1,7 @@
import type { APIRoute } from "astro";
import { getCollection, type CollectionEntry } from "astro:content";
import { generateOgImageForPost } from "@utils/generateOgImages";
import { slugifyStr } from "@utils/slugify";
import { generateOgImageForPost } from "@/utils/generateOgImages";
import { slugifyStr } from "@/utils/slugify";
export async function getStaticPaths() {
const posts = await getCollection("blog").then(p =>
+2 -2
View File
@@ -1,7 +1,7 @@
import rss from "@astrojs/rss";
import { getCollection } from "astro:content";
import getSortedPosts from "@utils/getSortedPosts";
import { SITE } from "@config";
import getSortedPosts from "@/utils/getSortedPosts";
import { SITE } from "@/config";
export async function GET() {
const posts = await getCollection("blog");
+7 -7
View File
@@ -1,12 +1,12 @@
---
import { getCollection } from "astro:content";
import Header from "@components/Header.astro";
import Footer from "@components/Footer.astro";
import Layout from "@layouts/Layout.astro";
import Main from "@layouts/Main.astro";
import Tag from "@components/Tag.astro";
import getUniqueTags from "@utils/getUniqueTags";
import { SITE } from "@config";
import Layout from "@/layouts/Layout.astro";
import Header from "@/components/Header.astro";
import Footer from "@/components/Footer.astro";
import Main from "@/layouts/Main.astro";
import Tag from "@/components/Tag.astro";
import getUniqueTags from "@/utils/getUniqueTags";
import { SITE } from "@/config";
const posts = await getCollection("blog");