Fix banner backdrop image path for production
- Move god-bless-bitcoin-backdrop.jpg to public/images/ folder - Update content store to use /images/ path instead of /assets/images/ - Files in public/ are served directly in production builds - Fixes broken banner image on production server Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
BIN
public/images/god-bless-bitcoin-backdrop.jpg
Normal file
BIN
public/images/god-bless-bitcoin-backdrop.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 31 KiB |
@@ -25,10 +25,10 @@ export const useContentStore = defineStore('content', () => {
|
|||||||
// Set featured content immediately - God Bless Bitcoin
|
// Set featured content immediately - God Bless Bitcoin
|
||||||
const godBlessBitcoin = bitcoinFilms.find(f => f.title === 'God Bless Bitcoin') || bitcoinFilms[0]
|
const godBlessBitcoin = bitcoinFilms.find(f => f.title === 'God Bless Bitcoin') || bitcoinFilms[0]
|
||||||
if (godBlessBitcoin) {
|
if (godBlessBitcoin) {
|
||||||
// Override backdrop to use the downloaded image
|
// Override backdrop to use the public folder image
|
||||||
featuredContent.value = {
|
featuredContent.value = {
|
||||||
...godBlessBitcoin,
|
...godBlessBitcoin,
|
||||||
backdrop: '/assets/images/god-bless-bitcoin-backdrop.jpg'
|
backdrop: '/images/god-bless-bitcoin-backdrop.jpg'
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
featuredContent.value = indeeHubFilms[0]
|
featuredContent.value = indeeHubFilms[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user