mirror of
https://github.com/Unkn0wnCat/KevinK.dev.js.git
synced 2025-07-20 01:47:19 +02:00
Fix assets being redirected by redirector
This commit is contained in:
parent
0a667e5d23
commit
81ab62b154
4 changed files with 113 additions and 1 deletions
src/server
|
@ -13,6 +13,10 @@ async function checkLang({ request }) {
|
|||
|
||||
let requestURL = new URL(url);
|
||||
|
||||
if(requestURL.pathname.startsWith("/assets") || requestURL.pathname.startsWith("/icons") || requestURL.pathname.startsWith("/manifest.webmanifest")) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (let i = 0; i < config.languages.length; i++) {
|
||||
const language = config.languages[i];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue