-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
37 lines (33 loc) · 1013 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
/* eslint-disable @typescript-eslint/no-var-requires */
/** @type {import('next').NextConfig} */
const { i18n } = require('./next-i18next.config.js');
const withTranslateRoutes = require('next-translate-routes/plugin')
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
});
module.exports = withBundleAnalyzer(withTranslateRoutes({
output: 'standalone',
reactStrictMode: true,
i18n,
sassOptions: {
fiber: false,
},
images: {
remotePatterns: [
{
protocol: "https",
hostname: "**",
}, {
protocol: "http",
hostname: "localhost",
},
],
},
env: {
REACT_APP_API_HOST: process.env.REACT_APP_API_HOST,
REACT_APP_HOST: process.env.REACT_APP_HOST,
REACT_APP_GA_MEASUREMENT_ID: process.env.REACT_APP_GA_MEASUREMENT_ID,
REACT_APP_BOOKING_AFFILIATE_ID: process.env.REACT_APP_BOOKING_AFFILIATE_ID,
REACT_APP_WEBHOOK_SECRET: process.env.REACT_APP_WEBHOOK_SECRET,
}
}));