<p>Major news: Leilukin's Hub has a custom domain name: leilukin.com! In addition, Leilukin's Hub is now hosted on Netlify, with the leilukin.com domain name pointing to the Netlify host.</p>
<p>Leilukin's Hub has grown significantly since its launch on Neocities in September 2022, not just in how many pages it has, but also the fact that the site includes various resources I have shared across the internet (most notably, some of my <cite>Star Wars: Knights of the Old Republic</cite><ahref="/shrines/starwarskotor/articles">articles</a> and <ahref="/shrines/starwarskotor/guides">guides</a>).</p>
<p>Furthermore, web development has become more than a hobby to me — after starting to build my own website and relearning HTML and CSS, my interest in web development has grown enough to the point I started taking online web development courses and aspiring to become a serious web developer, by taking online courses on platforms such as freeCodeCamp and Scrimba. While Leilukin's Hub is still a hobby website, I have been using this site to practice and grow my web development skills, including using a static site generator, namely Eleventy, to <ahref="/blog/posts/2024-04-21-april-2024-leilukins-hub-overhaul-with-eleventy">rebuild and overhaul this site in April 2024</a>.</p>
<p>As much I appreciate Neocities for being a good platform for beginner and hobbyist webmasters to get their start in creating their own websites for free, throughout my journey in learning web development more seriously, I have also discovered other static site hosting platforms, such as GitHub Pages and Netlify, and looked into them as alternatives to Neocities.</p>
<p>Meanwhile, I have been considering purchasing a domain name for Leilukin's Hub. A custom domain name makes my website address easier to remember. Also, I have been using Leilukin as my internet pseudonym for about 17 years at this point, so it feels right to finally own a domain name with that name for my own website.</p>
<divclass="heading-wrapper h2">
<h2id="new-host-for-leilukins-hub">New Host for Leilukin's Hub</h2>
<p>Neocities provides a <ahref="https://neocities.org/supporter">Supporter subscription plan</a> with benefits including larger storage, custom domain support and removing file type restrictions, but 50 GB storage is overkill for me when the free tier's 1GB storage is already more than enough for Leilukin's Hub at its current stage.</p>
<p>Not to mention, the above-mentioned GitHub Pages and Netlify already provide custom domain support and no file upload type restriction for free. Getting a custom domain name already requires money, so I need to carefully consider if it is worth for me to spend 5 USD per month on top of my domain name to host my hobby website.</p>
<p>After much deliberation, I settled for Netlify as the new hosting platform for Leilukin's Hub. I am already using GitHub Pages to host my developer portfolio website (with a custom domain name too) as well as some of my other developer projects, and I already have a Netlify account to deploy some of my developer projects. In addition, Netlify allows you to import and deploy a project from a GitHub repository, so I may as well make use of Netlify.</p>
<p>The process of deploying Leilukin's Hub from its GitHub repository went smoothly, so it was time to proceed to the next step: buying and setting up a custom domain.</p>
<divclass="heading-wrapper h2">
<h2id="custom-domain-for-leilukins-hub">Custom Domain for Leilukin's Hub</h2>
<p>After comparing various domain name registrars, I chose to buy my domain name from Porkbun for its competitive price for domain names. The leilukin.com domain name was not taken, so I seized the opportunity to place an order for it, and later succeeded in purchasing and registering it as my own.</p>
<p>Upon owning leilukin.com, I followed Netlify's instructions to set up DNS records to point leilukin.com to my website on Netlify. I lacked experience in such things, so it took a bit longer for me to set it up properly, but I eventually did it. Visiting leilukin.com will lead you to Leilukin's Hub on Netlify.</p>
<p>Since Porkbun provides an email forwarding feature for its domain names for free, I also decided to make use of it and set up a new email address with the <code>leilkin.com</code> domain name, <code>contact@leilukin.com</code>, and forward emails sent to this address to my Outlook mailbox. This means now you can email me at <ahref="mailto:contact@leilukin.com">contact@leilukin.com</a>.</p>
<divclass="heading-wrapper h2">
<h2id="redirect-to-new-domain-name">Redirect to New Domain Name</h2>
<p>There was one last piece of the puzzle to make the Leilukin's Hub's transition from Neocities to Netlify seamless: a way to redirect the <code>leilukin.neocities.org</code> address to <code>leiulkin.com</code>.</p>
<p>I want a way to redirect my Neocities site address instead of placing a web page to announce the hosting change, because I have shared my Neocities site and some of its content on multiple platforms on the internet. Redirect eliminates the need for visitors to <code>leilukin.neocities.org</code> to click a link just to go to the new address.</p>
<p>After researching ways to redirect web pages, I used JavaScript, specifically the <ahref="https://www.w3schools.com/jsref/met_loc_replace.asp"><code>location.replace()</code> method</a>, for two reasons: it removes <code>leilukin.neocities.org</code> from page history, and using JavaScript allows me to write custom code to ensure only the domain gets changed, while the rest of the URL's path remains intact. For example, if you visit <code>leilukin.neocities.org/blog</code>, you will get redirected to <code>leilukin.com/blog</code>.</p>
<p><strong>leilukin.neocities.org, the Neocities version of Leilukin's Hub will no longer be updated</strong>. Visiting leilukin.neocities.org will redirect you to leiulkin.com, my new domain on Netlify. That said, I still post about updates to Leilukin's Hub on my Neocities profile.</p>
<p>I am still using my Neocities account and logging in almost daily. A couple of fellow webmasters and I have been following each other on Neocities, so I am not abandoning my Neocities account any time soon, and Neocities users are still welcome to follow me and post messages on <ahref="https://neocities.org/site/leilukin">my Neocities profile page</a>.</p>
<p>(<strong>Update, 4 June 2024:</strong> Originally, even when Leilukin's Hub began to switch host to Netlify, I still deployed Leilukin's Hub to Neocities by using the <ahref="https://github.com/bcomnes/deploy-to-neocities">deploy-to-neocities GitHub action</a>, in order to notify my Neocities followers of updates to Leilukin's Hub, but I have changed my mind and decided to stop pushing Leilukin's Hub's updates to Neocities, so I can focus on my website's hosting on Netlify)</p>
<p>Welcome to leilukin.com! 🥳 Not going to lie, I am excited that this major news for my website is officially announced just a day before Pride Month starts! 🏳️🌈</p>
<ahref="mailto:contact@leilukin.com">Contact me by email</a> (<ahref="https://useplaintext.email/">plain text email</a> encouraged)