Add aliases to vite

This commit is contained in:
prototypa
2022-08-24 20:10:06 -04:00
parent af3afbeed4
commit cbcb6c0011
3 changed files with 70 additions and 1 deletions

View File

@ -1,7 +1,7 @@
import { getNormalizedPost } from "~/utils/getNormalizedPost";
const load = async function () {
const posts = import.meta.glob("../data/posts/**/*.{md,mdx}", {
const posts = import.meta.glob("~/data/posts/**/*.{md,mdx}", {
eager: true,
});