mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-10 07:27:57 -05:00
fix(cli): improve root path redirect and bump version to 0.1.3
This commit is contained in:
@@ -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
2
package-lock.json
generated
@@ -13552,7 +13552,7 @@
|
||||
}
|
||||
},
|
||||
"packages/simstudio": {
|
||||
"version": "0.1.1",
|
||||
"version": "0.1.4",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"chalk": "^4.1.2",
|
||||
|
||||
Reference in New Issue
Block a user