File tree 3 files changed +14
-20
lines changed
3 files changed +14
-20
lines changed Original file line number Diff line number Diff line change @@ -45,24 +45,14 @@ const config: StorybookConfig = {
45
45
resolve : {
46
46
...config . resolve ,
47
47
alias : {
48
- '@nodevu/core' : false ,
49
48
'next-intl/navigation' : join ( mocksFolder , './next-intl.mjs' ) ,
50
49
'@/client-context' : join ( mocksFolder , './client-context.mjs' ) ,
51
50
'@' : join ( __dirname , '../' ) ,
52
51
} ,
53
52
} ,
54
- // We need to configure `node:` APIs as Externals to WebPack
55
- // since essentially they're not supported on the browser
56
- externals : {
57
- 'node:fs' : 'commonjs fs' ,
58
- 'node:url' : 'commonjs url' ,
59
- 'node:path' : 'commonjs path' ,
60
- 'node:readline' : 'commonjs readline' ,
61
- } ,
62
53
// Removes Pesky Critical Dependency Warnings due to `next/font`
63
54
ignoreWarnings : [
64
55
e =>
65
- e . message . includes ( 'Critical dep' ) ||
66
56
e . message . includes ( 'was not found in' ) ||
67
57
e . message . includes ( 'generated code contains' ) ,
68
58
] ,
Original file line number Diff line number Diff line change @@ -7,11 +7,6 @@ import { redirects, rewrites } from './next.rewrites.mjs';
7
7
8
8
/** @type {import('next').NextConfig } */
9
9
const nextConfig = {
10
- // Just to ensure that React is always on strict mode
11
- reactStrictMode : true ,
12
- // We intentionally disable Next.js's built-in i18n support
13
- // as we dom have our own i18n and internationalisation engine
14
- i18n : null ,
15
10
// We don't use trailing slashes on URLs from the Node.js Website
16
11
trailingSlash : false ,
17
12
// We don't want to redirect with trailing slashes
@@ -23,7 +18,8 @@ const nextConfig = {
23
18
images : {
24
19
// We disable image optimisation during static export builds
25
20
unoptimized : ENABLE_STATIC_EXPORT ,
26
- // We add it to the remote pattern for the static images we use from GitHub
21
+ // We add it to the remote pattern for the static images we use from multiple sources
22
+ // to be marked as safe sources (these come from Markdown files)
27
23
remotePatterns : [
28
24
{
29
25
protocol : 'https' ,
Original file line number Diff line number Diff line change 16
16
" NEXT_PUBLIC_BASE_PATH" ,
17
17
" NEXT_PUBLIC_ORAMA_API_KEY" ,
18
18
" NEXT_PUBLIC_ORAMA_ENDPOINT" ,
19
- " NEXT_PUBLIC_DATA_URL"
19
+ " NEXT_PUBLIC_DATA_URL" ,
20
+ " TURBO_CACHE" ,
21
+ " TURBO_TELEMETRY_DISABLED"
20
22
]
21
23
},
22
24
"build" : {
39
41
" NEXT_PUBLIC_BASE_PATH" ,
40
42
" NEXT_PUBLIC_ORAMA_API_KEY" ,
41
43
" NEXT_PUBLIC_ORAMA_ENDPOINT" ,
42
- " NEXT_PUBLIC_DATA_URL"
44
+ " NEXT_PUBLIC_DATA_URL" ,
45
+ " TURBO_CACHE" ,
46
+ " TURBO_TELEMETRY_DISABLED"
43
47
]
44
48
},
45
49
"start" : {
55
59
" NEXT_PUBLIC_BASE_PATH" ,
56
60
" NEXT_PUBLIC_ORAMA_API_KEY" ,
57
61
" NEXT_PUBLIC_ORAMA_ENDPOINT" ,
58
- " NEXT_PUBLIC_DATA_URL"
62
+ " NEXT_PUBLIC_DATA_URL" ,
63
+ " TURBO_CACHE" ,
64
+ " TURBO_TELEMETRY_DISABLED"
59
65
]
60
66
},
61
67
"deploy" : {
77
83
" NEXT_PUBLIC_BASE_PATH" ,
78
84
" NEXT_PUBLIC_ORAMA_API_KEY" ,
79
85
" NEXT_PUBLIC_ORAMA_ENDPOINT" ,
80
- " NEXT_PUBLIC_DATA_URL"
86
+ " NEXT_PUBLIC_DATA_URL" ,
87
+ " TURBO_CACHE" ,
88
+ " TURBO_TELEMETRY_DISABLED"
81
89
]
82
90
},
83
91
"lint:js" : {
You can’t perform that action at this time.
0 commit comments