From 9febe40c60bd9d4250e53e9fb96aa73fc232da57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20T=C3=A4kker?= Date: Wed, 4 Feb 2026 13:37:19 +0100 Subject: [PATCH 1/2] Add GET_FILE function to construct file URLs from backend server --- app/utils/file.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/utils/file.ts b/app/utils/file.ts index f77ccd5..3de0619 100644 --- a/app/utils/file.ts +++ b/app/utils/file.ts @@ -1 +1,3 @@ export const BACKEND_SERVE = `${import.meta.env.VITE_PUBLIC_BACKEND}/static/` + +export const GET_FILE = (file: string) => `${BACKEND_SERVE}${file}` From 247f1965339c732284fcb04a4db87985f18d0508 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20T=C3=A4kker?= Date: Wed, 4 Feb 2026 14:02:53 +0100 Subject: [PATCH 2/2] Added nuxt image --- nuxt.config.ts | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index c7ce546..7044e13 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -2,17 +2,20 @@ import { fileURLToPath } from "node:url" // https://nuxt.com/docs/api/configuration/nuxt-config export default defineNuxtConfig({ - compatibilityDate: "2025-07-15", - devtools: { enabled: true }, - modules: ["@nuxt/fonts", "@nuxt/icon", "@nuxt/image"], - components: [ - { - path: "~/ui", - pathPrefix: false, - }, - { - path: "~/components", - pathPrefix: true, - }, - ], -}) \ No newline at end of file + compatibilityDate: "2025-07-15", + devtools: { enabled: true }, + modules: ["@nuxt/fonts", "@nuxt/icon", "@nuxt/image"], + components: [ + { + path: "~/ui", + pathPrefix: false, + }, + { + path: "~/components", + pathPrefix: true, + }, + ], + image: { + domains: ["api.music.lucasskt.dk"], + }, +})