api url and environment

This commit is contained in:
Julian Krauser 2024-11-05 18:31:12 +01:00
parent 38385d56d9
commit 3e260c0007
10 changed files with 40 additions and 11 deletions

View file

@ -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>,