mirror of
https://github.com/snowykami/neo-blog.git
synced 2025-09-04 00:06:22 +00:00
- Updated component files to use consistent single quotes for strings. - Removed unnecessary newlines and adjusted indentation for better readability. - Simplified conditional rendering and improved code structure in various components. - Added ESLint configuration for better code quality and adherence to standards. - Enhanced error handling in i18n request logic.
35 lines
788 B
TypeScript
35 lines
788 B
TypeScript
import type { NextConfig } from 'next'
|
|
import createNextIntlPlugin from 'next-intl/plugin'
|
|
import { BACKEND_URL } from '@/api/client'
|
|
|
|
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() {
|
|
console.log('Using development API base URL:', BACKEND_URL)
|
|
return [
|
|
{
|
|
source: '/api/:path*',
|
|
destination: `${BACKEND_URL}/api/:path*`,
|
|
},
|
|
]
|
|
},
|
|
}
|
|
const withNextIntl = createNextIntlPlugin()
|
|
export default withNextIntl(nextConfig)
|