alpha
Login
or
Join now
danielroe.dev
/
synchub.to
Star
1
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
mirror your GitHub repos to tangled.org automatically
Star
1
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
fix: render /connect page with no js
author
Daniel Roe
date
1 week ago
(Jun 13, 2026, 1:35 PM +0100)
commit
b55b39ef
b55b39efd81c09ff351c55a555f5c1cb87d50ca8
parent
a259ec92
a259ec920c3834c45181e84b8cacf2b746ee54d7
+13
-15
2 changed files
Expand all
Collapse all
Unified
Split
app
pages
connect.vue
nuxt.config.ts
+12
-14
app/pages/connect.vue
Reviewed
···
8
8
9
9
const route = useRoute()
10
10
11
11
-
const installationId = computed(() => {
12
12
-
const raw = route.query.installation_id
13
13
-
return typeof raw === 'string' && /^\d+$/.test(raw) ? raw : null
14
14
-
})
15
15
-
const verified = computed(() => route.query.verified === '1')
16
16
-
17
17
-
const { data: info } = await useFetch<ConnectInfo>('/api/connect/info', {
18
18
-
query: { installationId },
19
19
-
immediate: !!installationId.value,
20
20
-
ignoreResponseError: true,
21
21
-
})
11
11
+
const rawId = route.query.installation_id
12
12
+
const installationId = typeof rawId === 'string' && /^\d+$/.test(rawId) ? rawId : null
13
13
+
const verified = route.query.verified === '1'
14
14
+
const loginFromQuery = typeof route.query.login === 'string' ? route.query.login : null
22
15
23
23
-
const login = computed(() =>
24
24
-
(typeof route.query.login === 'string' ? route.query.login : null) ?? info.value?.login ?? null,
16
16
+
const { data: info } = await useAsyncData<ConnectInfo | null>(
17
17
+
`connect-info-${installationId}`,
18
18
+
() => installationId && !loginFromQuery
19
19
+
? $fetch<ConnectInfo>('/api/connect/info', { query: { installationId } }).catch(() => null)
20
20
+
: Promise.resolve(null),
25
21
)
26
26
-
const accountLabel = computed(() => login.value ?? 'your GitHub account')
22
22
+
23
23
+
const login = loginFromQuery ?? info.value?.login ?? null
24
24
+
const accountLabel = login ?? 'your GitHub account'
27
25
</script>
28
26
29
27
<template>
+1
-1
nuxt.config.ts
Reviewed
···
68
68
routeRules: {
69
69
'/': { noScripts: true, prerender: true },
70
70
'/dashboard': { ssr: false, prerender: true },
71
71
-
'/connect': { ssr: false },
71
71
+
'/connect': { noScripts: true },
72
72
},
73
73
nitro: {
74
74
vercel: {