mirror of
https://github.com/KuekHaoYang/KVideo.git
synced 2026-08-20 19:23:42 +08:00
feat: increase navbar z-index and allow .online domains for remote images
This commit is contained in:
+1
-1
@@ -105,7 +105,7 @@ function HomePage() {
|
||||
return (
|
||||
<div className="min-h-screen">
|
||||
{/* Glass Navbar */}
|
||||
<nav className="sticky top-0 z-50 pt-4 pb-2" style={{
|
||||
<nav className="sticky top-0 z-[2000] pt-4 pb-2" style={{
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
willChange: 'transform'
|
||||
}}>
|
||||
|
||||
+10
-2
@@ -4,12 +4,12 @@ const nextConfig: NextConfig = {
|
||||
// Performance optimizations
|
||||
reactStrictMode: true,
|
||||
poweredByHeader: false,
|
||||
|
||||
|
||||
// Compiler optimizations
|
||||
compiler: {
|
||||
removeConsole: process.env.NODE_ENV === 'production',
|
||||
},
|
||||
|
||||
|
||||
images: {
|
||||
remotePatterns: [
|
||||
// Douban images
|
||||
@@ -86,6 +86,14 @@ const nextConfig: NextConfig = {
|
||||
protocol: 'https',
|
||||
hostname: '**.xyz',
|
||||
},
|
||||
{
|
||||
protocol: 'http',
|
||||
hostname: '**.online',
|
||||
},
|
||||
{
|
||||
protocol: 'https',
|
||||
hostname: '**.online',
|
||||
},
|
||||
],
|
||||
// Add image optimization for better performance
|
||||
formats: ['image/webp'],
|
||||
|
||||
Reference in New Issue
Block a user