@taujs/server 0.4.9 → 0.5.0
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/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2052,7 +2052,8 @@ var SSRServer = fp3(
|
|
|
2052
2052
|
var resolveClientRoot = (userClientRoot) => {
|
|
2053
2053
|
if (userClientRoot) return path5.isAbsolute(userClientRoot) ? userClientRoot : path5.resolve(process.cwd(), userClientRoot);
|
|
2054
2054
|
const cwd = process.cwd();
|
|
2055
|
-
|
|
2055
|
+
if (process.env.NODE_ENV === "production") return path5.resolve(cwd, "dist/client");
|
|
2056
|
+
return path5.resolve(cwd, "src/client");
|
|
2056
2057
|
};
|
|
2057
2058
|
var createServer = async (opts) => {
|
|
2058
2059
|
const t0 = performance3.now();
|