Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
try import meta url
Browse files- Dockerfile +1 -1
- src/lib/components/community/Card.svelte +3 -1
- static/data/uploads +0 -1
Dockerfile
CHANGED
@@ -20,7 +20,7 @@ RUN chmod +x entrypoint.sh
|
|
20 |
EXPOSE 3000
|
21 |
|
22 |
# Create symlink
|
23 |
-
|
24 |
|
25 |
# Start the application
|
26 |
ENTRYPOINT ["/usr/src/app/entrypoint.sh"]
|
|
|
20 |
EXPOSE 3000
|
21 |
|
22 |
# Create symlink
|
23 |
+
RUN mkdir -p ./static/data && ln -s /data/uploads ./static/data/uploads
|
24 |
|
25 |
# Start the application
|
26 |
ENTRYPOINT ["/usr/src/app/entrypoint.sh"]
|
src/lib/components/community/Card.svelte
CHANGED
@@ -36,6 +36,8 @@
|
|
36 |
await onDelete?.(id);
|
37 |
loading = false;
|
38 |
}
|
|
|
|
|
39 |
</script>
|
40 |
|
41 |
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
@@ -45,7 +47,7 @@
|
|
45 |
on:click={handleClick}
|
46 |
>
|
47 |
<div class="w-full h-full absolute top-0 left-0 -z-[1] rounded-xl overflow-hidden" class:!brightness-50={loading}>
|
48 |
-
<div class="w-full h-full bg-center bg-cover transition-all duration-200 group-hover:scale-110 " style="background-image: url('{env.PUBLIC_FILE_UPLOAD_DIR}/{card.image}');"></div>
|
49 |
</div>
|
50 |
<div class="group-hover:opacity-100 opacity-0 translate-y-full group-hover:translate-y-0 transition-all duration-200 flex flex-col gap-4 w-full">
|
51 |
<div class="bg-black/40 backdrop-blur-sm border border-white/30 rounded-lg px-6 py-3 text-white transition-all duration-200 w-full">
|
|
|
36 |
await onDelete?.(id);
|
37 |
loading = false;
|
38 |
}
|
39 |
+
|
40 |
+
console.log(import.meta.env.BASE_URL)
|
41 |
</script>
|
42 |
|
43 |
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
|
|
47 |
on:click={handleClick}
|
48 |
>
|
49 |
<div class="w-full h-full absolute top-0 left-0 -z-[1] rounded-xl overflow-hidden" class:!brightness-50={loading}>
|
50 |
+
<div class="w-full h-full bg-center bg-cover transition-all duration-200 group-hover:scale-110 " style="background-image: url('{import.meta.env.BASE_URL}{env.PUBLIC_FILE_UPLOAD_DIR}/{card.image}');"></div>
|
51 |
</div>
|
52 |
<div class="group-hover:opacity-100 opacity-0 translate-y-full group-hover:translate-y-0 transition-all duration-200 flex flex-col gap-4 w-full">
|
53 |
<div class="bg-black/40 backdrop-blur-sm border border-white/30 rounded-lg px-6 py-3 text-white transition-all duration-200 w-full">
|
static/data/uploads
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
/data/uploads
|
|
|
|