asset include

This commit is contained in:
glax 2025-03-30 17:32:50 +02:00
parent 44f43b7152
commit fbb25807e6
3 changed files with 3 additions and 3 deletions

View File

@ -11,6 +11,7 @@ FROM nginx:alpine3.17-slim
# Copy built files from Vite's dist folder
COPY --from=builder /app/Website/dist /usr/share/nginx/html
COPY --from=builder /app/Website/media /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

View File

@ -57,7 +57,7 @@ export default function Settings({ backendConnected, apiUri, frontendSettings, s
return (
<div id="Settings">
<div onClick={() => setShowSettings(true)}>
<img id="Settings-Cogwheel" src="../../media/settings-cogwheel.svg" alt="settings-cogwheel" />
<img id="Settings-Cogwheel" src="../media/settings-cogwheel.svg" alt="settings-cogwheel" />
</div>
{showSettings
? <div className="popup" id="SettingsPopUp">

View File

@ -5,6 +5,5 @@ export default defineConfig({
server: {
port: '8080'
},
root: 'Website',
assetsInclude: ['**/media/*']
root: 'Website'
})