-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
42 lines (40 loc) · 1.07 KB
/
next.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/** @type {import('next').NextConfig} */
const dns = require('dns')
dns.setDefaultResultOrder('ipv4first')
const nextConfig = {
images: {
// domains: ['localhost'],
remotePatterns: [
{
protocol: 'http',
hostname: '**',
},
],
// loader: 'imgix',
// path: '/',
// unoptimized: true,
},
reactStrictMode: true,
swcMinify: true,
// output: 'standalone',
experimental: {
appDir: true,
},
env: {
// For Docker Containers to communicate
// NEXT_PUBLIC_STRAPI_API_URL: 'http://backend:1338/api',
// For local development without Docker
// NEXT_PUBLIC_STRAPI_API_URL: 'http://202.181.146.26:1338/api',
// NEXT_PUBLIC_STRAPI_URL: 'http://202.181.146.26:1338',
// NEXT_PUBLIC_SITE_URL: 'https://clg-frontend.vercel.app',
// NEXT_PUBLIC_SITE_URL: 'http://localhost:3000',
},
typescript: {
// !! WARN !!
// Dangerously allow production builds to successfully complete even if
// your project has type errors.
// !! WARN !!
ignoreBuildErrors: true,
},
}
module.exports = nextConfig