Remove /home rewrite, replace with page
This commit is contained in:
parent
f2d42a6c0c
commit
afd18d19a9
3 changed files with 5 additions and 6 deletions
|
@ -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" })(
|
||||||
|
|
3
src/app/(drift)/home/page.tsx
Normal file
3
src/app/(drift)/home/page.tsx
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
import HomePage from "../page";
|
||||||
|
|
||||||
|
export default HomePage;
|
|
@ -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 />
|
||||||
}
|
}
|
Loading…
Reference in a new issue