feat: nuxt ssr auth tutorial

This commit is contained in:
loks0n
2024-02-09 21:29:15 +00:00
parent 3b3c12a66c
commit 2e3cff571a
11 changed files with 401 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
import type { LayoutLoad } from './$types';
export const load: LayoutLoad = ({ url }) => {
const tutorials = import.meta.glob('./**/*.markdoc', {
eager: true
});
return {
tutorials,
pathname: url.pathname
};
};