Files
neo-blog/web/next.config.ts
Snowykami c565b5b5ef ️ feat: Refactor API client to support server-side and client-side configurations
fix: Update post fetching logic to use dynamic ID instead of hardcoded value

feat: Enhance layout with animated transitions using framer-motion

refactor: Remove old post and user page implementations, introduce new structure

feat: Implement sidebar components for blog home with dynamic content

feat: Create blog post component with wave header and metadata display

feat: Add responsive sidebar menu for navigation on mobile devices

chore: Introduce reusable sheet component for modal-like functionality
2025-07-25 06:18:24 +08:00

35 lines
734 B
TypeScript

import { BACKEND_URL } from "@/api/client";
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: "standalone",
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'www.gravatar.com',
port: '',
pathname: '/avatar/**',
},
{
protocol: 'https',
hostname: 'cdn.liteyuki.org',
port: '',
pathname: '/**',
},
],
},
async rewrites() {
const backendUrl = BACKEND_URL
console.log("Using development API base URL:", backendUrl);
return [
{
source: '/api/:path*',
destination: backendUrl + '/api/:path*',
},
]
}
};
export default nextConfig;