mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-14 13:58:21 +00:00
Try this
This commit is contained in:
@@ -32,11 +32,12 @@ function insert() {
|
||||
items.value[replaceIndex] = newIcon
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
intervalTime.value = setInterval(() => {
|
||||
insert()
|
||||
}, 2000)
|
||||
})
|
||||
// TODO: Try maybe something else for better pref performance
|
||||
// onMounted(() => {
|
||||
// intervalTime.value = setInterval(() => {
|
||||
// insert()
|
||||
// }, 2000)
|
||||
// })
|
||||
|
||||
onBeforeUnmount(() => {
|
||||
clearInterval(intervalTime.value)
|
||||
|
||||
@@ -6,14 +6,25 @@ const currentDir = process.cwd();
|
||||
const vercelRouteConfig = {
|
||||
version: 3,
|
||||
overrides: {},
|
||||
// cleanUrls: true,
|
||||
routes: [
|
||||
{
|
||||
handle: 'filesystem',
|
||||
},
|
||||
{
|
||||
source: '/icon/:path*',
|
||||
destination: '/icons/:path*',
|
||||
permanent: true,
|
||||
},
|
||||
{
|
||||
src: '(?<url>/api/.*)',
|
||||
dest: '/__nitro?url=$url',
|
||||
},
|
||||
{
|
||||
src: '/(.*)',
|
||||
status: 404,
|
||||
dest: '/404.html',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
|
||||
-10
@@ -1,10 +0,0 @@
|
||||
{
|
||||
"cleanUrls" : true,
|
||||
"redirects": [
|
||||
{
|
||||
"source": "/icon/:path*",
|
||||
"destination":"/icons/:path*",
|
||||
"permanent": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user