rasengan 1.0.0-beta.47 → 1.0.0-beta.49

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.
@@ -109,7 +109,9 @@ program
109
109
  return [4 /*yield*/, import(configPath)];
110
110
  case 1:
111
111
  appConfig = (_c.sent()).default;
112
- server = appConfig.server;
112
+ return [4 /*yield*/, appConfig];
113
+ case 2:
114
+ server = (_c.sent()).server;
113
115
  hostingStrategy = (_b = (_a = server === null || server === void 0 ? void 0 : server.production) === null || _a === void 0 ? void 0 : _a.hosting) !== null && _b !== void 0 ? _b : "custom";
114
116
  execa("node", ["node_modules/rasengan/lib/esm/scripts/prepare-prod"], {
115
117
  stdio: "inherit",
@@ -16,6 +16,12 @@ function copyExtraFiles() {
16
16
  ], {
17
17
  stdio: "inherit",
18
18
  });
19
+ execa("cp", [
20
+ "./src/server/functions/vercel/vercel.json",
21
+ "".concat(targetDir, "/server/functions/vercel"),
22
+ ], {
23
+ stdio: "inherit",
24
+ });
19
25
  }
20
26
  });
21
27
  });
@@ -0,0 +1,16 @@
1
+ {
2
+ "routes": [
3
+ {
4
+ "src": "/assets/(.*)",
5
+ "dest": "client/assets/$1"
6
+ },
7
+ {
8
+ "src": "/(.+\\.(png|ico|svg|jpg|jpeg|gif))",
9
+ "dest": "client/$1"
10
+ },
11
+ {
12
+ "src": "/(.*)",
13
+ "dest": "api/index.js"
14
+ }
15
+ ]
16
+ }
@@ -3,7 +3,7 @@ export type AppConfig = {
3
3
  * Enable strict mode
4
4
  * @default true
5
5
  * @deprecated
6
- * This option will be removed in the future, prefer using the "Strict" component from your App component props
6
+ * This option will be removed in the future, prefer using the "StrictMode" component from your App component props or from "react"
7
7
  */
8
8
  reactStrictMode?: boolean;
9
9
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rasengan",
3
3
  "private": false,
4
- "version": "1.0.0-beta.47",
4
+ "version": "1.0.0-beta.49",
5
5
  "description": "The modern frontend framework for React",
6
6
  "type": "module",
7
7
  "main": "lib/esm/index.js",