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
{{ message }}
This repository was archived by the owner on Dec 27, 2024. It is now read-only.
<li>Defined in <ahref="https://github.com/sakuraapi/api/blob/43318ee/boot/sakura-api-config.ts#L17">boot/sakura-api-config.ts:17</a></li>
146
+
<li>Defined in <ahref="https://github.com/sakuraapi/api/blob/6b7b95c/src/boot/sakura-api-config.ts#L48">boot/sakura-api-config.ts:48</a></li>
146
147
</ul>
147
148
</aside>
148
149
<divclass="tsd-comment tsd-typography">
@@ -165,7 +166,7 @@ <h3>data<wbr>Sources</h3>
165
166
<liclass="tsd-description">
166
167
<asideclass="tsd-sources">
167
168
<ul>
168
-
<li>Defined in <ahref="https://github.com/sakuraapi/api/blob/43318ee/boot/sakura-api-config.ts#L54">boot/sakura-api-config.ts:54</a></li>
169
+
<li>Defined in <ahref="https://github.com/sakuraapi/api/blob/6b7b95c/src/boot/sakura-api-config.ts#L79">boot/sakura-api-config.ts:79</a></li>
169
170
</ul>
170
171
</aside>
171
172
<divclass="tsd-comment tsd-typography">
@@ -212,15 +213,15 @@ <h3>load</h3>
212
213
<liclass="tsd-description">
213
214
<asideclass="tsd-sources">
214
215
<ul>
215
-
<li>Defined in <ahref="https://github.com/sakuraapi/api/blob/43318ee/boot/sakura-api-config.ts#L82">boot/sakura-api-config.ts:82</a></li>
216
+
<li>Defined in <ahref="https://github.com/sakuraapi/api/blob/6b7b95c/src/boot/sakura-api-config.ts#L108">boot/sakura-api-config.ts:108</a></li>
216
217
</ul>
217
218
</aside>
218
219
<divclass="tsd-comment tsd-typography">
219
220
<divclass="lead">
220
-
<p>loads the config file specified by path. If no path is provided, load the path/filename defined in environmental variable SAKURA_API_CONFIG,
221
-
otherwise load <code>config/environment.json</code> from the root of the project.</p>
221
+
<p>Loads the config file specified by path. If no path is provided, load the path/filename defined in environmental
222
+
variable SAKURA_API_CONFIG, otherwise load <code>config/environment.json</code> from the root of the project.</p>
222
223
</div>
223
-
<p>SakuraApi looks for a config/ folder in the root of your api project.
224
+
<p>SakuraApi looks for a config/ folder in the root of your api project.
224
225
It cascades the values found in the following order (the last taking precedence over the former):</p>
225
226
<ul>
226
227
<li>environment.json</li>
@@ -229,7 +230,8 @@ <h3>load</h3>
229
230
<li>environment.{env}.ts</li>
230
231
<li>system environmental variables</li>
231
232
</ul>
232
-
<p>Where <code>{env}</code> is replaced by what's set in the environmental variable <code>NODE_ENV</code>. For example, if your set <code>NODE_ENV=dev</code> when you start your server, the system will load:</p>
233
+
<p>Where <code>{env}</code> is replaced by what's set in the environmental variable <code>NODE_ENV</code>. For example, if your set
234
+
<code>NODE_ENV=dev</code> when you start your server, the system will load:</p>
0 commit comments