vovk 2.0.0-beta.1 → 2.0.0-beta.3
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/cli/index.cjs +4 -5
- package/cli/server.cjs +1 -1
- package/package.json +1 -1
package/cli/index.cjs
CHANGED
|
@@ -32,12 +32,12 @@ if (command === 'dev') {
|
|
|
32
32
|
throw new Error(' 🐺 ❌ PORT env variable is required in --next-dev mode');
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
const serverEnv = { VOVK_CLIENT_OUT: clientOut, PORT };
|
|
35
|
+
const serverEnv = { VOVK_CLIENT_OUT: clientOut, PORT, __VOVK_START_SERVER__: '' };
|
|
36
36
|
|
|
37
37
|
const env = await getVars(serverEnv);
|
|
38
38
|
|
|
39
39
|
if (nextDev) {
|
|
40
|
-
|
|
40
|
+
serverEnv.__VOVK_START_SERVER__ = 'true';
|
|
41
41
|
|
|
42
42
|
const commands = [
|
|
43
43
|
{
|
|
@@ -54,11 +54,10 @@ if (command === 'dev') {
|
|
|
54
54
|
});
|
|
55
55
|
|
|
56
56
|
await parallel(commands).catch((e) => console.error(e));
|
|
57
|
+
console.info(' 🐺 All processes have ended');
|
|
57
58
|
} else {
|
|
58
|
-
startVovkServer(env);
|
|
59
|
+
startVovkServer({ ...serverEnv, VOVK_PORT: env.VOVK_PORT });
|
|
59
60
|
}
|
|
60
|
-
|
|
61
|
-
console.info(' 🐺 All processes have ended');
|
|
62
61
|
})();
|
|
63
62
|
} else if (command === 'generate') {
|
|
64
63
|
void (async () => {
|
package/cli/server.cjs
CHANGED