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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server.js +11 -4
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rasengan",
3
3
  "private": false,
4
- "version": "1.0.0-beta.37",
4
+ "version": "1.0.0-beta.38",
5
5
  "description": "The modern frontend framework for React",
6
6
  "type": "module",
7
7
  "main": "lib/esm/index.js",
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 ||