-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
37 lines (35 loc) · 946 Bytes
/
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
const withPWA = require("next-pwa")({
dest: "public",
register: true,
skipWaiting: true,
disable: process.env.NODE_ENV === "development",
});
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
images: {
domains: ["res.cloudinary.com"], // Specify the domains for images
remotePatterns: [
{
protocol: "https",
hostname: "i.pinimg.com ",
port: "",
pathname: "/account123/**",
},
{
protocol: "https",
hostname: "https://www.gstatic.com",
port: "",
pathname: "/account123/**",
},
],
},
//You need to include the Api Keys into the next.config
env: {
API_KEY: process.env.NEXT_PUBLIC_API_KEY,
MESSENGER_ID: process.env.NEXT_PUBLIC_MESSAGING_SENDER_ID,
APP_ID: process.env.NEXT_PUBLIC_APP_ID,
NEWS_KEY: process.env.NEXT_PUBLIC_NEWS_KEY,
},
};
module.exports = withPWA(nextConfig);