From 5015b609b814e1877888705cb28d06b2b94824da Mon Sep 17 00:00:00 2001 From: Trenton Zimmer <66042448+trmazi@users.noreply.github.com> Date: Wed, 1 Jan 2025 20:58:10 -0500 Subject: [PATCH] Update all asset loading to be dynamic --- .env.development | 3 ++- .env.production | 3 ++- index.html | 10 ++++---- src/components/ArcadeCard.vue | 3 ++- src/components/UserAvatar.vue | 2 +- src/components/UserCard.vue | 3 ++- src/constants/index.js | 41 +++++++++++++++------------------ src/constants/sources.js | 3 ++- src/views/Game/PlayerView.vue | 3 ++- src/views/Game/RivalsView.vue | 3 ++- src/views/Profile/CardsView.vue | 6 ++++- 11 files changed, 44 insertions(+), 36 deletions(-) diff --git a/.env.development b/.env.development index 372eb7ce..feda988b 100644 --- a/.env.development +++ b/.env.development @@ -1,2 +1,3 @@ VITE_API_URL="http://10.5.7.5:8000/" -VITE_API_KEY="your_api_key_should_be_here" \ No newline at end of file +VITE_API_KEY="your_api_key_should_be_here" +VITE_ASSET_PATH="/assets" \ No newline at end of file diff --git a/.env.production b/.env.production index 08c09ee0..ed30443f 100644 --- a/.env.production +++ b/.env.production @@ -1,2 +1,3 @@ VITE_API_URL="https://restfulsleep.phaseii.network" -VITE_API_KEY="your_api_key_should_be_here" \ No newline at end of file +VITE_API_KEY="your_api_key_should_be_here" +VITE_ASSET_PATH="https://cdn.phaseii.network/file/PhaseII/web-assets" \ No newline at end of file diff --git a/index.html b/index.html index 6927eaaa..3d8ed4d0 100644 --- a/index.html +++ b/index.html @@ -48,9 +48,9 @@
- + - + @@ -58,13 +58,13 @@ -