mirror of
https://github.com/snowykami/neo-blog.git
synced 2025-09-04 00:06:22 +00:00
- Implemented `getPostById` API function to fetch a post by its ID. - Refactored the main page to use a new `BlogHome` component for better organization. - Added loading state and sorting functionality for posts on the blog home page. - Integrated label fetching and display on the blog home page. - Enhanced the blog card component with improved layout and statistics display. - Updated the navbar to use dynamic configuration values. - Added Docker support with a comprehensive build and push workflow. - Created a custom hook `useStoredState` for managing local storage state. - Added a new page for displaying individual posts with metadata generation. - Removed unused components and files to streamline the codebase.
33 lines
743 B
TypeScript
33 lines
743 B
TypeScript
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 = (process.env.NEXT_PUBLIC_API_BASE_URL || "http://localhost:8888")
|
|
console.log("Using development API base URL:", backendUrl);
|
|
return [
|
|
{
|
|
source: '/api/:path*',
|
|
destination: backendUrl + '/api/:path*',
|
|
},
|
|
]
|
|
}
|
|
};
|
|
export default nextConfig;
|