api url and environment
This commit is contained in:
parent
38385d56d9
commit
3e260c0007
10 changed files with 40 additions and 11 deletions
|
@ -36,7 +36,8 @@
|
|||
import type { PropType } from "vue";
|
||||
import type BaseCollection from "~/types/collection/baseCollection";
|
||||
|
||||
const baseUrl = useStrapiUrl().replace("/api", "");
|
||||
const runtimeConfig = useRuntimeConfig();
|
||||
const baseUrl = runtimeConfig.public.strapi.url;
|
||||
|
||||
defineProps({
|
||||
data: Object as PropType<BaseCollection>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue