feat: src/pages special directory
This commit is contained in:
parent
c7cd0cad0a
commit
2a7cd6888e
6 changed files with 1 additions and 12 deletions
|
@ -3,7 +3,7 @@ export default defineNitroConfig({
|
||||||
serverAssets: [
|
serverAssets: [
|
||||||
{
|
{
|
||||||
baseName: "pages",
|
baseName: "pages",
|
||||||
dir: "./pages",
|
dir: "./src/pages",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
|
@ -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,
|
|
||||||
}
|
|
||||||
);
|
|
Loading…
Reference in a new issue