Skip to content

Commit

Permalink
fix(login): resolve background image loading issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kirklin committed Jan 9, 2025
1 parent 9c54a0e commit def0cc4
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
20 changes: 20 additions & 0 deletions apps/admin/vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,25 @@
"source": "/:path*",
"destination": "/index.html"
}
],
"headers": [
{
"source": "/(.*)",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
},
{
"source": "/(.*).(png|jpg|jpeg|gif|webp|svg|ico)$",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
}
]
}
9 changes: 8 additions & 1 deletion apps/admin/vite.config.mts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
import { createViteConfig } from "@celeris/vite";

export default createViteConfig();
export default createViteConfig({
overrides: {
assetsInclude: ["**/*.svg"],
build: {
assetsInlineLimit: 0,
},
},
});

0 comments on commit def0cc4

Please sign in to comment.