httpsms-gateway / web /app /middleware /redirectToThreads.ts
ML Intern deploy
Deploy httpSMS gateway to Hugging Face Spaces (Docker SDK): nginx :7860 -> Go API :8000, Nuxt SPA, Android APK, bootstrap-mode entrypoint
83a59ca
Raw History Blame Contribute Delete
285 Bytes
import { STORAGE_KEY } from '~/stores/redirectPreference'
export default defineNuxtRouteMiddleware(() => {
try {
if (localStorage.getItem(STORAGE_KEY) === 'true') {
return navigateTo('/threads', { replace: true })
}
} catch (error) {
console.error(error)
}
})