-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathnext.config.js
64 lines (60 loc) · 2.11 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
const withSass = require('@zeit/next-sass')
module.exports = withSass({ dynamicAssetPrefix = false, ...nextConfig } = {
webpack(config, options) {
const { isServer } = options;
config.module.rules.push({
test: /\.(mp3)$/,
exclude: nextConfig.exclude,
use: [
{
loader: 'file-loader',
options: {
name: '[name].[ext]',
publicPath: `${isServer ? "../" : ""}_next/static/audio`,
outputPath: `${isServer ? "../" : ""}static/audio`,
esModule: nextConfig.esModule || false
},
},
],
});
config.module.rules.push({
test: /\.(png|jpg|gif|webp|svg|ico|svgb)$/,
exclude: config.exclude,
use: [
{
loader: 'file-loader',
options: {
name: '[name].[ext]',
publicPath: `${isServer ? "../" : ""}_next/static/img`,
outputPath: `${isServer ? "../" : ""}static/img`,
esModule: nextConfig.esModule || false
},
},
],
});
config.module.rules.push({
test: /\.glsl$/,
use: [
{
loader: 'raw-loader',
options: {
esModule: nextConfig.esModule || false
}
}
]
});
return config;
},
env: {
STORY_MAPR_API_URL: 'https://beta.storymapr.com',
DTR_ID: '5fd2da87c860c2582a1e483c',
API_KEY: "AIzaSyDQQ2tD2xfigMFsR33Sa3wrUuua_UfJDGI",
AUTHDOMAIN: "maslo-377f0.firebaseapp.com",
BASEURL: "https://maslo-377f0.firebaseio.com",
PROJECT_ID: "maslo-377f0",
STORAGEBUCKET: "maslo-377f0.appspot.com",
MESSAGING_SENDER_ID: "778596067777",
APP_ID: "1:778596067777:web:3256b22df641ab822ba740",
MEASUREMENT_ID: ""
}
});