You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p class="design-paragraph"><a class="design-link" href="https://www.npmjs.com/package/@dotenvx/next-env" target="_blank" rel="noopener noreferrer"><code class="design-code">@dotenvx/next-env</code></a> is a drop-in replacement for Next.js <code class="design-code">@next/env</code>, so encrypted dotenvx files load during Next’s own environment step.</p>
65
+
66
+
{% capture sdk_next_env %}
67
+
{
68
+
"dependencies": {
69
+
"@dotenvx/next-env": "^2.0.0",
70
+
"next": "^16.0.0"
71
+
},
72
+
"overrides": {
73
+
"@next/env": "npm:@dotenvx/next-env"
74
+
}
75
+
}
76
+
{% endcapture %}
77
+
{% include components/design-codeblock.html value=sdk_next_env copy=false %}
78
+
{% endcapture %}
79
+
{% include components/design-step.html content=step_content %}
Copy file name to clipboardExpand all lines: docs/sdk/nodejs/config-convention.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,24 +1,30 @@
1
1
---
2
2
layout: docs-cli
3
+
eyebrow: Node
4
+
eyebrow_href: /docs/sdk/nodejs/
3
5
title: "config(convention: 'nextjs')"
4
6
description: Use convention in node.js code.
5
-
permalink: /docs/sdk/config-convention/
7
+
permalink: /docs/sdk/nodejs/config-convention/
6
8
redirect_from:
9
+
- /docs/sdk/config-convention
10
+
- /docs/sdk/config-convention/
7
11
- /docs/advanced/config-convention
8
12
- /docs/advanced/config-convention/
9
13
- /docs/ref/sdk/config-convention
10
14
- /docs/ref/sdk/config-convention/
11
15
crumbs:
12
16
- label: Docs
13
17
href: /docs/introduction
14
-
- label: SDK
18
+
- label: SDKs
15
19
href: /docs/sdk
20
+
- label: Node
21
+
href: /docs/sdk/nodejs
16
22
- label: config
17
-
href: /docs/sdk/config/
23
+
href: /docs/sdk/nodejs/config/
18
24
---
19
25
<pclass="design-paragraph">Set a convention when using <codeclass="design-code">dotenvx.config()</code>. This allows you to use the same file loading order as the CLI without needing to specify each file individually.</p>
20
26
21
-
<pclass="design-paragraph">To load a convention from another directory, see <aclass="design-link"href="/docs/sdk/config-path-directory-convention"><codeclass="design-code">config(path: directory, convention: 'nextjs')</code></a>.</p>
27
+
<pclass="design-paragraph">To load a convention from another directory, see <aclass="design-link"href="/docs/sdk/nodejs/config-path-directory-convention"><codeclass="design-code">config(path: directory, convention: 'nextjs')</code></a>.</p>
0 commit comments