Ещё одна попытка включить поддержку старых браузеров (SvelteKit не работает с плагином vite legacy)
All checks were successful
/ build (push) Successful in 3m47s
/ deploy (push) Successful in 56s

This commit is contained in:
Иван Кузьменко 2025-11-30 19:30:25 +03:00
parent d79d323f17
commit 6d12b45d41
2 changed files with 1 additions and 3 deletions

View file

@ -28,7 +28,7 @@ const icons: Record<string, string> = {
const specialResolvers: Record<string, (url: URL) => string> = { const specialResolvers: Record<string, (url: URL) => string> = {
'teasanctuary.ru': (url) => { 'teasanctuary.ru': (url) => {
// Домены третьего уровня и выше // Домены третьего уровня и выше
const prefix = url.hostname.split('.').toReversed(); const prefix = url.hostname.split('.').reverse();
prefix.shift(); prefix.shift();
prefix.shift(); prefix.shift();
if (prefix[0] === "hl") { if (prefix[0] === "hl") {

View file

@ -8,8 +8,6 @@ export default {
sveltekit(), sveltekit(),
tailwindcss(), tailwindcss(),
legacy({ legacy({
targets: 'defaults',
modernPolyfills: true,
renderLegacyChunks: false renderLegacyChunks: false
}) })
] ]