Replies: 3 comments 1 reply
-
You can delete If you want to get rid of the
Hope this helps! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks Dale, unfortunately it does not work as expected. The blog can be accessed via /blog and /, I want to get rid of /blog really. I replaced /blog with / in a few files now and the href of the blog post redirects to blog.domain.com/blog-post-name-here <http://domain.com/blog-post-name-here> but it’s not accessible. I think it is related to the router or something, I’m not sure. However, I can still access the blog post via blog.domain.com/blog/blog-post-name-here <http://blog.domain.com/blog/blog-post-name-here>.
… On 22 Dec 2022, at 20:17, Dale Larroder ***@***.***> wrote:
You can delete pages/index.js and then rename pages/blog.js to pages/index.js so that /blog will be your new / page
—
Reply to this email directly, view it on GitHub <#585 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AWXDYLRVT5B5AFVCKAGSB7LWOSSNVANCNFSM6AAAAAATGDUZ5Q>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Thank you Dale, that worked! Have a great day and merry Christmas!
… On 23 Dec 2022, at 05:12, Dale Larroder ***@***.***> wrote:
@dure-jay <https://github.com/dure-jay> are you sure you followed the steps I wrote? It's just moving files around and it works for me.
http://domain.com/blog-post-name-here is not accessible because you haven't moved pages/blog/page/[...slug].js to pages/[...slug].js
Demo:
https://user-images.githubusercontent.com/52998821/209269365-a9c2d461-ea6d-463b-9ff1-6d7f3cd78ac0.mov
—
Reply to this email directly, view it on GitHub <#585 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AWXDYLVMR3JCBRMLICWU7W3WOURDFANCNFSM6AAAAAATGDUZ5Q>.
You are receiving this because you were mentioned.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I deployed the codebase to Vercel and I'm using blog.domainname.com. The blog is automatically exposed as blog.domainname.com/blog, how can I remove /blog and use / as root instead?
Beta Was this translation helpful? Give feedback.
All reactions