Skip to content

Commit

Permalink
fix warn
Browse files Browse the repository at this point in the history
  • Loading branch information
BuJlJlu committed Oct 14, 2024
1 parent d26e744 commit 3bb2e13
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 10 deletions.
23 changes: 15 additions & 8 deletions components/global/Separator.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
<template>
<span class="separator">
<img
class="separator__img"
width="20"
height="20"
alt="MixDrinks logo"
title="MixDrinks logo"
src="/img/logo.png"
/>
<picture class="cart__picture">
<source
srcset="/img/logo.png"
media="screen and (min-width: 1023px)"
/>
<source srcset="/img/logo-mob.png" />
<img
class="separator__img"
width="20"
height="20"
alt="MixDrinks logo"
title="MixDrinks logo"
src="/img/logo-mob.png"
/>
</picture>
</span>
</template>

Expand Down
4 changes: 2 additions & 2 deletions components/global/styles/separator.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
height: 20px;

@media (min-width: 1023px) {
width: 30px;
height: 30px;
width: 32px;
height: 32px;
}
}
}
12 changes: 12 additions & 0 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { MasterKeys } from './config'
import { schemaOrganization, schemaWebSite } from './utils/schema'

const isDev = process.env.NODE_ENV
const year = 60 * 60 * 24 * 365

export default defineNuxtConfig({
devtools: { enabled: MasterKeys[isDev].devtools },
Expand All @@ -11,6 +12,17 @@ export default defineNuxtConfig({
autoImport: false
},

experimental: {
buildCache: true
},

nitro: {
routeRules: {
"/img/**": { headers: { 'cache-control': `public,max-age=${year},s-maxage=${year}` } },
"/scripts/**": { headers: { 'cache-control': `public,max-age=${year},s-maxage=${year}` } },
}
},

ssr: true,

app: {
Expand Down
Binary file added public/img/logo-mob.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/img/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3bb2e13

Please sign in to comment.