mirror of
https://github.com/snowykami/neo-blog.git
synced 2025-09-04 00:06:22 +00:00
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
35 lines
734 B
TypeScript
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;
|