-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
39 lines (37 loc) · 1.04 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
const withImages = require('next-images');
const { withSentryConfig } = require("@sentry/nextjs");
const configWithImages = withImages({
reactStrictMode: true,
images: {
domains: ['res.cloudinary.com'],
disableStaticImages: true,
},
async redirects() {
return [
// {
// source: '/archive',
// destination: '/programs',
// permanent: true,
// },
{
source: '/:any',
destination: '/',
permanent: false,
}]
},
webpack(config) {
return config;
},
env: {
BASE_API_URL: process.env.BASE_API_URL,
SITE_LOGO_URL: process.env.SITE_LOGO_URL,
NEXT_IMAGE_ALLOWED_DOMAINS: process.env.NEXT_IMAGE_ALLOWED_DOMAINS,
NEXT_PUBLIC_GOOGLE_ANALYTICS: process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS,
MIXPANEL_API_KEY: process.env.MIXPANEL_API_KEY,
CONTACT_NUMBER: process.env.CONTACT_NUMBER,
FB_PIXEL_ID: process.env.FB_PIXEL_ID,
RECAPTCA_KEY: process.env.RECAPTCA_KEY,
SITE_OPEN_GRAPH_IMAGE: process.env.SITE_OPEN_GRAPH_IMAGE,
}
})
module.exports = withSentryConfig(configWithImages);