@agent8/deploy 1.1.1 → 1.2.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/bin/agent8.js +9 -2
- package/package.json +1 -1
package/bin/agent8.js
CHANGED
|
@@ -34,7 +34,7 @@ const envConfig = dotenv.parse(fs.readFileSync(envFilePath));
|
|
|
34
34
|
|
|
35
35
|
const endpoint =
|
|
36
36
|
envConfig.VITE_AGENT8_REMOTE_URL ||
|
|
37
|
-
"https://verse8-
|
|
37
|
+
"https://verse8-game-backend-kr-609824224664.asia-northeast3.run.app";
|
|
38
38
|
|
|
39
39
|
let verse = envConfig.VITE_AGENT8_VERSE;
|
|
40
40
|
let account = envConfig.VITE_AGENT8_ACCOUNT;
|
|
@@ -58,12 +58,19 @@ if (previewMode || prodMode) {
|
|
|
58
58
|
);
|
|
59
59
|
process.exit(1);
|
|
60
60
|
}
|
|
61
|
+
|
|
62
|
+
if (previewMode && !verse) {
|
|
63
|
+
console.error(
|
|
64
|
+
"Error: VITE_AGENT8_VERSE is required in .env file for preview mode"
|
|
65
|
+
);
|
|
66
|
+
process.exit(1);
|
|
67
|
+
}
|
|
61
68
|
}
|
|
62
69
|
|
|
63
70
|
// Determine target verse based on mode
|
|
64
71
|
let targetVerse = verse;
|
|
65
72
|
if (previewMode) {
|
|
66
|
-
targetVerse = `${
|
|
73
|
+
targetVerse = `${verse}-preview`;
|
|
67
74
|
console.log("Preview mode: Deploying to preview verse:", targetVerse);
|
|
68
75
|
} else if (prodMode) {
|
|
69
76
|
console.log("Production mode: Deploying to verse:", targetVerse);
|