viagen 0.0.39 → 0.0.40
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/cli.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -227,7 +227,7 @@ async function deploySandbox(opts) {
|
|
|
227
227
|
}
|
|
228
228
|
const devServer = await sandbox2.runCommand({
|
|
229
229
|
cmd: "npm",
|
|
230
|
-
args: ["run", "dev"
|
|
230
|
+
args: ["run", "dev"],
|
|
231
231
|
detached: true
|
|
232
232
|
});
|
|
233
233
|
const baseUrl = sandbox2.domain(5173);
|
package/dist/index.js
CHANGED
|
@@ -104,7 +104,7 @@ function registerHealthRoutes(server, env, errorRef) {
|
|
|
104
104
|
);
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
|
-
const currentVersion = true ? "0.0.
|
|
107
|
+
const currentVersion = true ? "0.0.40" : "0.0.0";
|
|
108
108
|
debug("health", `version resolved: ${currentVersion}`);
|
|
109
109
|
let versionCache = null;
|
|
110
110
|
server.middlewares.use("/via/version", (_req, res) => {
|
|
@@ -3744,7 +3744,7 @@ async function deploySandbox(opts) {
|
|
|
3744
3744
|
}
|
|
3745
3745
|
const devServer = await sandbox.runCommand({
|
|
3746
3746
|
cmd: "npm",
|
|
3747
|
-
args: ["run", "dev"
|
|
3747
|
+
args: ["run", "dev"],
|
|
3748
3748
|
detached: true
|
|
3749
3749
|
});
|
|
3750
3750
|
const baseUrl = sandbox.domain(5173);
|
|
@@ -3792,7 +3792,7 @@ function viagen(options) {
|
|
|
3792
3792
|
config(_, { mode }) {
|
|
3793
3793
|
const e = loadEnv(mode, process.cwd(), "");
|
|
3794
3794
|
if (e["VIAGEN_AUTH_TOKEN"]) {
|
|
3795
|
-
return { server: { allowedHosts: true } };
|
|
3795
|
+
return { server: { host: true, allowedHosts: true } };
|
|
3796
3796
|
}
|
|
3797
3797
|
},
|
|
3798
3798
|
configResolved(config) {
|