From bbc6d9fbc734139128ded791a13cdc60b89ad418 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Mon, 26 Aug 2024 17:16:26 +0900 Subject: [PATCH] wip --- packages/backend/src/server/web/boot.embed.js | 2 +- packages/backend/src/server/web/views/base-embed.pug | 8 ++++---- packages/backend/src/server/web/views/base.pug | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/backend/src/server/web/boot.embed.js b/packages/backend/src/server/web/boot.embed.js index c3cc1055fe..48d1cd262b 100644 --- a/packages/backend/src/server/web/boot.embed.js +++ b/packages/backend/src/server/web/boot.embed.js @@ -86,7 +86,7 @@ //#region Script async function importAppScript() { - await import(`/vite/${CLIENT_ENTRY}`) + await import(`/embed_vite/${CLIENT_ENTRY}`) .catch(async e => { console.error(e); renderError('APP_IMPORT'); diff --git a/packages/backend/src/server/web/views/base-embed.pug b/packages/backend/src/server/web/views/base-embed.pug index 4f7ba72ff1..b01b80dd0c 100644 --- a/packages/backend/src/server/web/views/base-embed.pug +++ b/packages/backend/src/server/web/views/base-embed.pug @@ -19,14 +19,14 @@ html(class='embed') link(rel='apple-touch-icon' href= appleTouchIcon || '/apple-touch-icon.png') //- https://github.com/misskey-dev/misskey/issues/9842 link(rel='stylesheet' href='/assets/tabler-icons/tabler-icons.min.css?v3.3.0') - link(rel='modulepreload' href=`/vite/${entry.file}`) + link(rel='modulepreload' href=`/embed_vite/${entry.file}`) - if !config.clientManifestExists - script(type="module" src="/vite/@vite/client") + if !config.frontendEmbedManifestExists + script(type="module" src="/embed_vite/@vite/client") if Array.isArray(entry.css) each href in entry.css - link(rel='stylesheet' href=`/vite/${href}`) + link(rel='stylesheet' href=`/embed_vite/${href}`) title block title diff --git a/packages/backend/src/server/web/views/base.pug b/packages/backend/src/server/web/views/base.pug index 19a8452752..b6fd4105a0 100644 --- a/packages/backend/src/server/web/views/base.pug +++ b/packages/backend/src/server/web/views/base.pug @@ -40,7 +40,7 @@ html link(rel='stylesheet' href='/assets/tabler-icons/tabler-icons.min.css?v3.3.0') link(rel='modulepreload' href=`/vite/${entry.file}`) - if !config.clientManifestExists + if !config.frontendManifestExists script(type="module" src="/vite/@vite/client") if Array.isArray(entry.css)