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 { glob } from "astro/loaders";
import { SITE } from "@config";
import { SITE } from "@/config";
const blog = defineCollection({
loader: glob({ pattern: "**/[^_]*.md", base: "./src/data/blog" }),
+7 -11
View File
@@ -1,17 +1,13 @@
{
"extends": "astro/tsconfigs/strict",
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"],
"compilerOptions": {
"baseUrl": "src",
"jsx": "react-jsx",
"baseUrl": ".",
"paths": {
"@assets/*": ["assets/*"],
"@config": ["config.ts"],
"@components/*": ["components/*"],
"@content/*": ["content/*"],
"@layouts/*": ["layouts/*"],
"@pages/*": ["pages/*"],
"@styles/*": ["styles/*"],
"@utils/*": ["utils/*"]
}
"@/*": ["./src/*"]
},
"jsx": "react-jsx",
"jsxImportSource": "react"
}
}