build!: update import alias to @/*

This commit is contained in:
satnaing
2025-02-25 19:38:26 +07:00
committed by Sat Naing
parent 594addaec1
commit 90231031a5
2 changed files with 8 additions and 12 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
import { defineCollection, z } from "astro:content"; import { defineCollection, z } from "astro:content";
import { glob } from "astro/loaders"; import { glob } from "astro/loaders";
import { SITE } from "@config"; import { SITE } from "@/config";
const blog = defineCollection({ const blog = defineCollection({
loader: glob({ pattern: "**/[^_]*.md", base: "./src/data/blog" }), loader: glob({ pattern: "**/[^_]*.md", base: "./src/data/blog" }),
+7 -11
View File
@@ -1,17 +1,13 @@
{ {
"extends": "astro/tsconfigs/strict", "extends": "astro/tsconfigs/strict",
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"],
"compilerOptions": { "compilerOptions": {
"baseUrl": "src", "baseUrl": ".",
"jsx": "react-jsx",
"paths": { "paths": {
"@assets/*": ["assets/*"], "@/*": ["./src/*"]
"@config": ["config.ts"], },
"@components/*": ["components/*"], "jsx": "react-jsx",
"@content/*": ["content/*"], "jsxImportSource": "react"
"@layouts/*": ["layouts/*"],
"@pages/*": ["pages/*"],
"@styles/*": ["styles/*"],
"@utils/*": ["utils/*"]
}
} }
} }