-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
52 lines (46 loc) · 1.56 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
const securityHeaders = [
{
key: 'Content-Security-Policy',
value: `default-src * 'self' data: 'unsafe-inline' 'unsafe-eval' *`,
}
]
module.exports = {
async headers() {
return [
{
// Apply these headers to all routes in your application.
source: '/(.*)',
headers: securityHeaders,
},
]
},
generateEtags: false,
pageExtensions: ['tsx', 'ts', 'jsx', 'js'],
serverRuntimeConfig: {
// Will only be available on the server side
},
publicRuntimeConfig: {
// Will be available on both server and client
DEVELOPER_NAME: process.env.DEVELOPER_NAME,
MY_GITHUB: `${process.env.GITHUB}${process.env.DEVELOPER_NAME}`,
SITE_URL_BASE: process.env.SITE_URL_BASE,
SITE_URL_BASE_API: process.env.SITE_URL_BASE_API,
SITE_URL_BASE_API_GITHUB: process.env.SITE_URL_BASE_API_GITHUB,
SITE_URL_BASE_AVATAR_GITHUB: process.env.SITE_URL_BASE_AVATAR_GITHUB,
SITE_URL_BASE_TWITTER_INTENT: process.env.SITE_URL_BASE_TWITTER_INTENT,
ERROR_GET: `Algo deu errado. Por favor recarregue a página, se o erro persistir consulte meu contato no github: ${process.env.GITHUB}${process.env.DEVELOPER_NAME}`
},
images: {
domains: ['github.com', 'avatars.githubusercontent.com', 'moveit-db.herokuapp.com'],
},
env: {
TIME_COUNTDOWN_PRODUCTION: 25,
TIME_COUNTDOWN_TEST: (0.2/3)/2,
TOAST_BAR_COUNTDOWN: 4,
STANDARD_LEVEL: 1,
STANDARD_CURRENT_EXPERIENCE: 0,
STANDARD_CHALLENGES_COMPLETED: 0,
DEFAULT_THEME: 'light',
DEFAULT_COOKIE_CONSENT: 0
},
}