Ghost
New
struxadotcloud
/
struxa
public
Star
0
Fork
0
Code
Issues
0
Pull requests
0
4ee2d74
1
branch
Go to file
t
Code
struxa
packages
api
src
services
instance.ts
feat: extended instance settings, social auth, 2FA improvements, encryption
0d30aab
5 months ago
9 lines · 339 B
1
import
{
eq
}
from
"
drizzle-orm
"
;
2
import
{
db
,
settings
3
import
{
env
}
4
5
export
async
function
getEffectiveAppUrl
6
if
(
env
.
APP_URL
7
const
row
=
8
return
row
?.
value
9
}
}
from
"
@struxa/db
"
;
from
"
@struxa/env/server
"
;
()
:
Promise
<
string
>
{
)
return
env
.
APP_URL
;
await
db
.
query
.
settings
.
findFirst
(
{
where
:
eq
(
settings
.
key
,
"
app_url
"
)
}
)
;
??
""
;