Remove /home rewrite, replace with page

This commit is contained in:
Max Leiter 2023-02-23 23:56:13 -08:00
parent f2d42a6c0c
commit afd18d19a9
3 changed files with 5 additions and 6 deletions

View file

@ -14,10 +14,6 @@ const nextConfig = {
source: "/file/raw/:id",
destination: `/api/raw/:id`
},
{
source: "/home",
destination: "/"
}
]
},
images: {
@ -25,7 +21,7 @@ const nextConfig = {
},
env: {
NEXT_PUBLIC_DRIFT_URL: process.env.DRIFT_URL
},
}
}
export default bundleAnalyzer({ enabled: process.env.ANALYZE === "true" })(

View file

@ -0,0 +1,3 @@
import HomePage from "../page";
export default HomePage;

View file

@ -100,4 +100,4 @@ async function PublicPostList() {
const clientPosts = posts.map((post) => serverPostToClientPost(post))
return <PostList initialPosts={clientPosts} hideActions hideSearch />
}
}