Skip to content

Commit bbf79a7

Browse files
committed
🌐 Configure for optimizerplus.github.io domain
- Remove basePath (root domain now) - Simplify image paths
1 parent 92a020e commit bbf79a7

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

next.config.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
/** @type {import('next').NextConfig} */
2-
const isProd = process.env.NODE_ENV === 'production';
32
const nextConfig = {
43
output: 'export',
54
trailingSlash: true,
6-
basePath: isProd ? '/optimizerpluswebsite' : '',
7-
assetPrefix: isProd ? '/optimizerpluswebsite/' : '',
85
images: {
96
unoptimized: true,
107
},

src/app/page.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ import Image from 'next/image'
55
import { useTranslations } from '@/i18n/provider'
66
import LanguageSelector from '@/components/LanguageSelector'
77

8-
// Base path for GitHub Pages
9-
const basePath = process.env.NODE_ENV === 'production' ? '/optimizerpluswebsite' : ''
10-
118
// Typing Effect Component - Memoized for performance
129
const TypingEffect = React.memo(function TypingEffect({ texts, className = '' }: { texts: string[], className?: string }) {
1310
const [displayText, setDisplayText] = useState('')
@@ -949,7 +946,7 @@ function Hero() {
949946
{/* Main Logo - Professional display */}
950947
<div className="flex justify-center mb-4">
951948
<img
952-
src={`${basePath}/logo.png`}
949+
src="/logo.png"
953950
alt="Boosteroid Optimizer Plus"
954951
className="h-24 sm:h-28 md:h-32 lg:h-36 xl:h-40 w-auto drop-shadow-[0_0_40px_rgba(0,163,255,0.6)] hover:drop-shadow-[0_0_60px_rgba(0,163,255,0.8)] transition-all duration-500 hover:scale-105"
955952
/>
@@ -1931,7 +1928,7 @@ function Footer() {
19311928
{/* Brand section with logo */}
19321929
<div className="flex flex-col items-center lg:items-start gap-3">
19331930
<img
1934-
src={`${basePath}/logo.png`}
1931+
src="/logo.png"
19351932
alt="Boosteroid Optimizer Plus"
19361933
className="h-24 sm:h-28 md:h-32 lg:h-36 w-auto drop-shadow-[0_0_40px_rgba(0,163,255,0.6)] hover:drop-shadow-[0_0_60px_rgba(0,163,255,0.8)] transition-all duration-500"
19371934
/>

0 commit comments

Comments
 (0)