feat: src/pages special directory

This commit is contained in:
Ayo 2023-10-08 00:18:32 +02:00
parent c7cd0cad0a
commit 2a7cd6888e
6 changed files with 1 additions and 12 deletions

View file

@ -3,7 +3,7 @@ export default defineNitroConfig({
serverAssets: [ serverAssets: [
{ {
baseName: "pages", baseName: "pages",
dir: "./pages", dir: "./src/pages",
}, },
], ],
}); });

View file

@ -1,11 +0,0 @@
export const cachedGHStars = cachedFunction(
async (repo: string) => {
const data: any = await $fetch(`https://api.github.com/repos/${repo}`);
return data.stargazers_count;
},
{
maxAge: 60 * 60,
name: "ghStars",
getKey: (repo: string) => repo,
}
);