-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnext.config.js
50 lines (39 loc) · 1.5 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
module.exports = {
// Important to keep trailingSlash as true for cmu.edu/faces/path to work
trailingSlash: true,
reactStrictMode: true,
// Running on local
//basePath: '',
//assetPrefix: '',
//basePublicPath: '',
//basePath: '',
//assetPrefix: '',
//basePublicPath: '',
//comment when deploying
// publicRuntimeConfig: {
// basePublicPath: root,
// }
// For deploying on Github pages
// basePath: '/cmu-iff-next/out',
// assetPrefix: '/cmu-iff-next/out',
// basePublicPath: '/cmu-iff-next/out',
// For deploying on staging site
// basePath: '/collections/faces-2',
// assetPrefix: '/collections/faces-2',
// basePublicPath: '/collections/faces-2',
// For deploying on production site
//basePath: '/faces',
//assetPrefix: '/faces',
//basePublicPath: '/faces',
// For deploying on local
// basePath: '/Users/shannon/Desktop/cmu-iff-next/out',
// assetPrefix: '/Users/shannon/Desktop/cmu-iff-next/out',
// basePublicPath: '/Users/shannon/Desktop/cmu-iff-next/out',
// For deploying on local
basePath: '/Users/anikasharma/Downloads/Github/cmu-iff-next/out',
assetPrefix: '/Users/anikasharma/Downloads/Github/cmu-iff-next/out',
basePublicPath: '/Users/anikasharma/Downloads/Github/cmu-iff-next/out',
}
// basePath: prepended to all <Link>
// assetPrefix: prepended to /_next/... CSS or JS files
// basePublicPath: since static generation can't use <Image> tags, we have to use <img> and the src doesn't get basePath appended to it so we have to force it