mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:01:42 +08:00
build!: update import alias to @/*
This commit is contained in:
@@ -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
@@ -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/*"]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user