diff --git a/src/content.config.ts b/src/content.config.ts index a5afd8d..f9fb498 100644 --- a/src/content.config.ts +++ b/src/content.config.ts @@ -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" }), diff --git a/tsconfig.json b/tsconfig.json index 63eb0e2..e7d9859 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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" } }