-
Notifications
You must be signed in to change notification settings - Fork 48
/
next.config.mjs
35 lines (32 loc) · 927 Bytes
/
next.config.mjs
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
import dotenv from 'dotenv';
import { resolve } from 'path';
dotenv.config({ path: resolve('.env.local') });
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
domains: [
'lh3.googleusercontent.com',
'image3.jdomni.in',
'image2.jdomni.in',
'www.svgrepo.com',
'picsum.photos',
'images.unsplash.com',
'sharehub.s3.amazonaws.com',
'avatars.githubusercontent.com'
],
},
eslint: {
ignoreDuringBuilds: true,
},
env: {
NEXTAUTH_URL: process.env.NEXTAUTH_URL,
NEXTAUTH_SECRET: process.env.NEXTAUTH_SECRET,
MONGODB_URI: process.env.MONGODB_URI,
GOOGLE_CLIENT_ID: process.env.GOOGLE_CLIENT_ID,
GOOGLE_CLIENT_SECRET: process.env.GOOGLE_CLIENT_SECRET,
BUCKET: process.env.BUCKET,
S3_ACCESS_KEY: process.env.S3_ACCESS_KEY,
S3_SECRET_ACCESS_KEY: process.env.S3_SECRET_ACCESS_KEY,
},
};
export default nextConfig;