UNPKG
@thunderstorefront/sdk
Version:
latest (0.3.3)
0.3.3
0.3.2
0.3.1
0.3.0
0.2.1
0.2.0
0.1.0
0.0.3
0.0.2
0.0.1
Create Nuxt extendable layer with this GitHub template.
@thunderstorefront/sdk
/
app
/
composables
/
utils
/
useClientUrl.ts
8 lines
(6 loc)
•
200 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
export
const
useClientUrl = ():
string
|
undefined
=>
{
const
config =
import
.
meta
.
server
?
useRuntimeConfig
().
thunderSdk
:
useRuntimeConfig
().
public
.
thunderSdk
;
return
config.
apiUrl
; };