fix the things
This commit is contained in:
@@ -15,5 +15,5 @@ export const GET = async (req: Request) => {
|
||||
|
||||
export const getStaticPaths = async () => {
|
||||
const posts = await readDir("data/posts/");
|
||||
return posts.map((p) => "/news/" + p.slice(0, -3) + "/");
|
||||
return posts.map((p) => "/posts/" + p.slice(0, -3) + "/");
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user