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", source: "/file/raw/:id",
destination: `/api/raw/:id` destination: `/api/raw/:id`
}, },
{
source: "/home",
destination: "/"
}
] ]
}, },
images: { images: {
@ -25,7 +21,7 @@ const nextConfig = {
}, },
env: { env: {
NEXT_PUBLIC_DRIFT_URL: process.env.DRIFT_URL NEXT_PUBLIC_DRIFT_URL: process.env.DRIFT_URL
}, }
} }
export default bundleAnalyzer({ enabled: process.env.ANALYZE === "true" })( 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)) const clientPosts = posts.map((post) => serverPostToClientPost(post))
return <PostList initialPosts={clientPosts} hideActions hideSearch /> return <PostList initialPosts={clientPosts} hideActions hideSearch />
} }