-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
38 lines (33 loc) · 1009 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
38
// NEXT_PUBLIC ENV is exposed to the javascript
// BUILD env only gets updated at build time
// .env.local overrides .env.development and .env.production
const config = {
reactStrictMode: true,
GA_ID: process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS_ACTIVE,
MIN_WORD_LENGTH: 3,
MAX_WORD_LENGTH: 8,
DEFAULT_WORD_LENGTH: 4,
MAX_HINTS: 100,
DEFAULT_SHOW_HINTS: false,
DEBUG_MODE: process.env.NEXT_PUBLIC_DEBUG_MODE === "true",
DEFAULT_THEME: "dark",
BASE_URL: process.env.NEXT_PUBLIC_WORDCHEATER_BASE_URL,
WORDLIST_API_PATH: "/api/wordlist",
compiler: {
styledComponents: true,
},
};
module.exports = config;
console.log(`
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!
!! WELCOME TO WORDCHEATER.APP
!!
!! Node Version: ${process.version} (use 18!)
!! HOST: ${process.env.NEXT_PUBLIC_WORDCHEATER_BASE_URL}
!! DEBUG MODE: ${config.DEBUG_MODE}
!!
!! Happy Coding!
!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
`);