Skip to content

Commit 8a5c5ea

Browse files
Configure for Root Domain hosting (username.github.io):
- Removed basePath and assetPrefix - Updated Sitemap, Robots, and OG URLs to the root domain
1 parent 94f633b commit 8a5c5ea

4 files changed

Lines changed: 3 additions & 15 deletions

File tree

app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const metadata = {
1818
openGraph: {
1919
title: 'WebToolkit Pro - Free Online Developer Tools',
2020
description: 'Free, premium online developer tools and utilities for web professionals.',
21-
url: 'https://abusufyan-netizen.github.io/webtoolkit_pro',
21+
url: 'https://abusufyan-netizen.github.io',
2222
siteName: 'WebToolkit Pro',
2323
type: 'website',
2424
},

app/robots.txt/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Disallow: /_next/
88
User-agent: Mediapartners-Google
99
Allow: /
1010
11-
Sitemap: https://abusufyan-netizen.github.io/webtoolkit_pro/sitemap.xml`
11+
Sitemap: https://abusufyan-netizen.github.io/sitemap.xml`
1212

1313
return new NextResponse(robots, {
1414
status: 200,

app/sitemap.xml/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { NextResponse } from 'next/server'
22

33
export async function GET() {
4-
const baseUrl = 'https://abusufyan-netizen.github.io/webtoolkit_pro'
4+
const baseUrl = 'https://abusufyan-netizen.github.io'
55
const now = new Date().toISOString()
66

77
const pages = [

next.config.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,7 @@
1-
const isGithubActions = process.env.GITHUB_ACTIONS || false
2-
let assetPrefix = ''
3-
let basePath = ''
4-
5-
if (isGithubActions) {
6-
const repo = process.env.GITHUB_REPOSITORY.replace(/.*?\//, '')
7-
assetPrefix = `/${repo}/`
8-
basePath = `/${repo}`
9-
}
10-
111
/** @type {import('next').NextConfig} */
122
const nextConfig = {
133
output: 'export',
144
trailingSlash: true,
15-
basePath: basePath,
16-
assetPrefix: assetPrefix,
175
images: {
186
unoptimized: true
197
}

0 commit comments

Comments
 (0)