fix(cli): improve root path redirect and bump version to 0.1.3

This commit is contained in:
Waleed Latif
2025-03-06 12:01:29 -08:00
parent 400ee1452d
commit cb9f46c983
2 changed files with 14 additions and 1 deletions

View File

@@ -82,6 +82,19 @@ export function ControlBar() {
useEffect(() => {
async function checkStatus() {
if (!activeWorkflowId) return
// Skip API call in localStorage mode
if (
typeof window !== 'undefined' &&
(localStorage.getItem('USE_LOCAL_STORAGE') === 'true' ||
process.env.NEXT_PUBLIC_USE_LOCAL_STORAGE === 'true' ||
process.env.NEXT_PUBLIC_DISABLE_DB_SYNC === 'true')
) {
// For localStorage mode, we already have the deployment status in the workflow store
// Nothing more to do as the useWorkflowStore already has this information
return
}
try {
const response = await fetch(`/api/workflow/${activeWorkflowId}/status`)
if (response.ok) {

2
package-lock.json generated
View File

@@ -13552,7 +13552,7 @@
}
},
"packages/simstudio": {
"version": "0.1.1",
"version": "0.1.4",
"license": "MIT",
"dependencies": {
"chalk": "^4.1.2",