UNPKG

@thunderstorefront/sdk

Version:

Create Nuxt extendable layer with this GitHub template.

8 lines (6 loc) 200 B
export const useClientUrl = (): string | undefined => { const config = import.meta.server ? useRuntimeConfig().thunderSdk : useRuntimeConfig().public.thunderSdk; return config.apiUrl; };