import {createRoute, createScope} from 'part:@sanity/base/router'
import tools from 'all:part:@sanity/base/tool'

export default createRoute('/some-site/:tool/*', params => {
  const tool = tools.find(tool => tool.name === params.tool)
  return createScope(tool.name, tool.router)
})

@@ -140,18 +140,8 @@
 e('/
-some-site/
 :too
@@ -188,30 +188,145 @@
 ind(
-tool =%3E tool.
+curr =%3E curr.name === params.tool)%0A%0A  // @todo implement better handling of errors%0A  if (!tool) %7B%0A    throw new Error(%60Tool with 
 name 
-=== 
+%22$%7B
 para
@@ -332,17 +332,35 @@
 ams.tool
-)
+%7D%22 not found%60)%0A  %7D%0A
 %0A  retur

Remove 'some-site' from URLs