Update homepage URL in request handler
Changed the HOME_PAGE_URL from the GitHub Pages site to the main GitHub repository URL in the root path handler.
This commit is contained in:
1 parent
9f119f21c3
commit
fc95a5128b
1 file changed
+1
-1
+1
-1
@@ -132,7 +132,7 @@ async function handleRequest(request, env, ctx) {
|
||||
|
||||
// Serve homepage for root path
|
||||
if (url.pathname === "/" || url.pathname === "") {
|
||||
const HOME_PAGE_URL = "https://xixu-me.github.io/Xget-page/";
|
||||
const HOME_PAGE_URL = "https://github.com/xixu-me/Xget";
|
||||
const requestHeaders = new Headers(request.headers);
|
||||
|
||||
const homePageRequest = new Request(HOME_PAGE_URL, {
|
||||
|
||||
Reference in new issue
Block a user