spine-framework 0.3.103 → 0.3.105
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/.framework/src/App.tsx +9 -2
- package/package.json +1 -1
package/.framework/src/App.tsx
CHANGED
|
@@ -40,8 +40,15 @@ function App() {
|
|
|
40
40
|
<Route path="/register" element={<RegisterPage />} />
|
|
41
41
|
<Route path="/forgot-password" element={<ForgotPasswordPage />} />
|
|
42
42
|
<Route path="/auth/confirm" element={<AuthConfirmPage />} />
|
|
43
|
-
{/* / shows setup instructions when
|
|
44
|
-
<Route
|
|
43
|
+
{/* / shows setup instructions only when VITE_SETUP_MODE=true */}
|
|
44
|
+
<Route
|
|
45
|
+
path="/"
|
|
46
|
+
element={
|
|
47
|
+
import.meta.env.VITE_SETUP_MODE === 'true'
|
|
48
|
+
? <SetupPage />
|
|
49
|
+
: <Navigate to="/login" replace />
|
|
50
|
+
}
|
|
51
|
+
/>
|
|
45
52
|
<Route path="*" element={<Navigate to="/login" replace />} />
|
|
46
53
|
</Routes>
|
|
47
54
|
) : user.status === 'pending' ? (
|