28 lines
575 B
TypeScript
28 lines
575 B
TypeScript
import type { NextConfig } from 'next'
|
|
|
|
const API_URL =
|
|
process.env.NEXT_PUBLIC_API_URL || 'http://127.0.0.1:8000/api/v1'
|
|
|
|
const nextConfig: NextConfig = {
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'via.placeholder.com',
|
|
},
|
|
{
|
|
protocol: 'http', // для локал девеломпента
|
|
hostname: '127.0.0.1',
|
|
port: '8000',
|
|
pathname: '/media/uploads/**',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'tripwb.com',
|
|
},
|
|
],
|
|
},
|
|
}
|
|
|
|
export default nextConfig
|