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