ignore: cloud
This commit is contained in:
@@ -10,7 +10,7 @@ export default function App() {
|
|||||||
<Router
|
<Router
|
||||||
root={props => (
|
root={props => (
|
||||||
<MetaProvider>
|
<MetaProvider>
|
||||||
<Title>SolidStart - Basic</Title>
|
<Title>opencode</Title>
|
||||||
<ErrorBoundary fallback={<div>Something went wrong</div>}>
|
<ErrorBoundary fallback={<div>Something went wrong</div>}>
|
||||||
<Suspense>{props.children}</Suspense>
|
<Suspense>{props.children}</Suspense>
|
||||||
</ErrorBoundary>
|
</ErrorBoundary>
|
||||||
|
|||||||
@@ -21,8 +21,11 @@ export const getActor = query(async (): Promise<Actor.Info> => {
|
|||||||
const url = new URL(evt!.request.headers.get("referer") ?? evt!.request.url)
|
const url = new URL(evt!.request.headers.get("referer") ?? evt!.request.url)
|
||||||
const auth = await useAuthSession()
|
const auth = await useAuthSession()
|
||||||
const [workspaceHint] = url.pathname.split("/").filter((x) => x.length > 0)
|
const [workspaceHint] = url.pathname.split("/").filter((x) => x.length > 0)
|
||||||
|
console.log("here1")
|
||||||
if (!workspaceHint) {
|
if (!workspaceHint) {
|
||||||
|
console.log("here2")
|
||||||
if (auth.data.current) {
|
if (auth.data.current) {
|
||||||
|
console.log("here3")
|
||||||
const current = auth.data.account[auth.data.current]
|
const current = auth.data.account[auth.data.current]
|
||||||
return {
|
return {
|
||||||
type: "account",
|
type: "account",
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ function CopyStatus() {
|
|||||||
const isLoggedIn = query(async () => {
|
const isLoggedIn = query(async () => {
|
||||||
"use server"
|
"use server"
|
||||||
const actor = await getActor()
|
const actor = await getActor()
|
||||||
|
console.log(actor)
|
||||||
if (actor.type === "account") {
|
if (actor.type === "account") {
|
||||||
const workspaces = await withActor(() => Account.workspaces())
|
const workspaces = await withActor(() => Account.workspaces())
|
||||||
throw redirect("/" + workspaces[0].id)
|
throw redirect("/" + workspaces[0].id)
|
||||||
|
|||||||
Reference in New Issue
Block a user