-
Notifications
You must be signed in to change notification settings - Fork 4
/
next.config.js
37 lines (34 loc) · 884 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 withPlugins = require('next-compose-plugins');
const withPWA = require('next-pwa')
const optimizedImages = require('next-optimized-images');
require('dotenv').config()
module.exports = withPlugins(
[
[withPWA, { dest: 'public' }],
[optimizedImages, { optimizeImagesInDev: true }],
],
{
env: {
AIRTABLE_API_KEY: process.env.AIRTABLE_API_KEY,
AIRTABLE_BASE_KEY: process.env.AIRTABLE_BASE_KEY,
GOOGLE_MAPS_API_KEY: process.env.GOOGLE_MAPS_API_KEY,
RESTRICTED_GOOGLE_MAPS_API_KEY: process.env.RESTRICTED_GOOGLE_MAPS_API_KEY,
},
webpack: (config, options) => {
config.module.rules.push(
{
test: /\.md$/,
use: 'raw-loader',
},
{
test: /\.svg$/,
use: ['@svgr/webpack'],
}
)
return config
},
pwa: {
dest: 'public'
},
}
)