sunnymh-manga-site/next.config.ts
yiekheng c099673f6b Switch nav toggle to tap-only and harden image protection
Replace scroll-direction nav reappear with a one-shot scroll-down hide
plus tap-on-image toggle. Distinguish tap from scroll on touch via
touchstart/touchmove tracking so swipes don't re-show the nav.
Discourage casual image saving with contextmenu prevent, draggable=false,
select-none, and -webkit-touch-callout:none. Add 10.8.0.2 to
allowedDevOrigins for VPN dev access.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 07:56:39 +08:00

20 lines
349 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
allowedDevOrigins: ["10.8.0.2"],
images: {
remotePatterns: [
{
protocol: "https",
hostname: "*.r2.dev",
},
{
protocol: "https",
hostname: "*.cloudflarestorage.com",
},
],
},
};
export default nextConfig;