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