rasengan 1.0.0-beta.37 → 1.0.0-beta.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server.js +11 -4
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -240,12 +240,19 @@ async function createServer({
|
|
|
240
240
|
|
|
241
241
|
// Launch server
|
|
242
242
|
(async function launchServer() {
|
|
243
|
-
// Get config
|
|
244
|
-
const config = (await import(join(process.cwd(), "rasengan.config.js")))
|
|
245
|
-
.default;
|
|
246
|
-
|
|
247
243
|
// Constants
|
|
248
244
|
const isProduction = process.env.NODE_ENV === "production";
|
|
245
|
+
|
|
246
|
+
// Get config
|
|
247
|
+
const config = (
|
|
248
|
+
await import(
|
|
249
|
+
join(
|
|
250
|
+
isProduction ? process.cwd() + "./../../" : process.cwd(),
|
|
251
|
+
"rasengan.config.js"
|
|
252
|
+
)
|
|
253
|
+
)
|
|
254
|
+
).default;
|
|
255
|
+
|
|
249
256
|
const port = !isProduction
|
|
250
257
|
? (process.env.PORT && Number(process.env.PORT)) ||
|
|
251
258
|
config.server?.development?.port ||
|