This commit is contained in:
Eric Fennis
2023-04-29 14:37:38 +02:00
parent 570cdef51f
commit ecf8d9ca2c
3 changed files with 17 additions and 15 deletions
@@ -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)
+11
View File
@@ -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
View File
@@ -1,10 +0,0 @@
{
"cleanUrls" : true,
"redirects": [
{
"source": "/icon/:path*",
"destination":"/icons/:path*",
"permanent": true
}
]
}