fix: extension builder preview was in reload loop (#3643)

This commit is contained in:
dni ⚡
2025-12-09 09:21:38 +01:00
committed by GitHub
parent cacffc67ee
commit 327b9d7f63
3 changed files with 5 additions and 8 deletions
File diff suppressed because one or more lines are too long
+1
View File
@@ -15,6 +15,7 @@ const DynamicComponent = {
const path = `/${name}/`
const routesPath = `/${name}/static/routes.json`
if (this.$router.getRoutes().some(r => r.path === path)) return
if (this.$route.fullPath.startsWith('/extensions/builder/preview')) return
fetch(routesPath)
.then(async res => {
if (!res.ok) throw new Error('No dynamic routes found')