From 6400df28fe337c7d4ba50f55426cdfb2de63648e Mon Sep 17 00:00:00 2001 From: Bartek Igielski Date: Sun, 30 Aug 2026 12:45:41 +0200 Subject: [PATCH 1/2] chore: remove tracked build output --- .github/workflows/ci.yml | 4 +- .gitignore | 5 + src/db/kuma.db | Bin 229376 -> 0 bytes .../generated/embedded-assets.bundle.ts | 633 ------------------ src/server/generated/frontend-entry-assets.ts | 12 - 5 files changed, 7 insertions(+), 647 deletions(-) delete mode 100644 src/db/kuma.db delete mode 100644 src/server/generated/embedded-assets.bundle.ts delete mode 100644 src/server/generated/frontend-entry-assets.ts diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 13e1ff0cd..d92fbcf84 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,8 +25,8 @@ jobs: - name: Lint run: bun run lint - - name: Build frontend - run: bun run build:frontend + - name: Generate build assets + run: bun run build:kuma-db && bun run build:frontend - name: Backend tests run: bun run test:backend diff --git a/.gitignore b/.gitignore index a5852f58b..e47f79ac7 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,8 @@ extra/exe-builder/obj # Build source maps emitted at repo root server.js.map *.js.map + +# Build-generated source/runtime assets +/src/db/kuma.db +/src/server/generated/embedded-assets.bundle.ts +/src/server/generated/frontend-entry-assets.ts diff --git a/src/db/kuma.db b/src/db/kuma.db deleted file mode 100644 index 1be024cebb696cd8b0e2fd355c797015aeb99fba..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 229376 zcmeI4+ix7#eaClo8(XqWIgT<(7+Yg24mq(D@nYIB3`3=D(yZUgiy6;Xm*P1V8`;KmY_l00ck)1V8`;KmY_lU{VS2=l}ZD z?`!lIe?R~PKmY_l00ck)1V8`;KmY_l00bt8z{UF6>E}J>`=;H&{{I9i7DE965C8!X z009sH0T2KI5C8!X0D%euc>b>dgJci@0T2KI5C8!X009sH0T2KI5SSnW7x`Fl|9^rs zilKl22!H?xfB*=900@8p2!H?xfIyi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server/generated/embedded-assets.bundle.ts b/src/server/generated/embedded-assets.bundle.ts deleted file mode 100644 index b9ea6c6f3..000000000 --- a/src/server/generated/embedded-assets.bundle.ts +++ /dev/null @@ -1,633 +0,0 @@ -// @ts-nocheck -// AUTO-GENERATED by scripts/build/generate-embedded-assets.ts — do not edit. - -import asset_0 from "../../../dist/apple-touch-icon-precomposed.png" with { type: "file" }; -import asset_1 from "../../../dist/apple-touch-icon.png" with { type: "file" }; -import asset_2 from "../../../dist/assets/360messenger--cUQkhrE.js" with { type: "file" }; -import asset_3 from "../../../dist/assets/360messenger--cUQkhrE.js.br" with { type: "file" }; -import asset_4 from "../../../dist/assets/360messenger-Bl7atNPL.css" with { type: "file" }; -import asset_5 from "../../../dist/assets/Alerta-CJ5mF3E3.js" with { type: "file" }; -import asset_6 from "../../../dist/assets/Alerta-CJ5mF3E3.js.br" with { type: "file" }; -import asset_7 from "../../../dist/assets/AliyunSms-DupH74Tw.js" with { type: "file" }; -import asset_8 from "../../../dist/assets/AliyunSms-DupH74Tw.js.br" with { type: "file" }; -import asset_9 from "../../../dist/assets/Apprise-BzeZoNPk.js" with { type: "file" }; -import asset_10 from "../../../dist/assets/Apprise-BzeZoNPk.js.br" with { type: "file" }; -import asset_11 from "../../../dist/assets/Bale-DKdDCGq_.js" with { type: "file" }; -import asset_12 from "../../../dist/assets/Bale-DKdDCGq_.js.br" with { type: "file" }; -import asset_13 from "../../../dist/assets/Bark-D1aoW3bY.js" with { type: "file" }; -import asset_14 from "../../../dist/assets/Bark-D1aoW3bY.js.br" with { type: "file" }; -import asset_15 from "../../../dist/assets/Cellsynt-DU30FKya.js" with { type: "file" }; -import asset_16 from "../../../dist/assets/Cellsynt-DU30FKya.js.br" with { type: "file" }; -import asset_17 from "../../../dist/assets/DingDing-Cz6OHYE2.js" with { type: "file" }; -import asset_18 from "../../../dist/assets/DingDing-Cz6OHYE2.js.br" with { type: "file" }; -import asset_19 from "../../../dist/assets/Discord-DNKNc-px.js" with { type: "file" }; -import asset_20 from "../../../dist/assets/Discord-DNKNc-px.js.br" with { type: "file" }; -import asset_21 from "../../../dist/assets/Evolution-BAdGYcNh.js" with { type: "file" }; -import asset_22 from "../../../dist/assets/Evolution-BAdGYcNh.js.br" with { type: "file" }; -import asset_23 from "../../../dist/assets/Feishu-DAvqJye1.js" with { type: "file" }; -import asset_24 from "../../../dist/assets/Fluxer-uQWti-ai.js" with { type: "file" }; -import asset_25 from "../../../dist/assets/Fluxer-uQWti-ai.js.br" with { type: "file" }; -import asset_26 from "../../../dist/assets/GoogleChat-BVSDKnbf.js" with { type: "file" }; -import asset_27 from "../../../dist/assets/GoogleChat-BVSDKnbf.js.br" with { type: "file" }; -import asset_28 from "../../../dist/assets/GoogleSheets-0Sx0OMVJ.js" with { type: "file" }; -import asset_29 from "../../../dist/assets/GoogleSheets-0Sx0OMVJ.js.br" with { type: "file" }; -import asset_30 from "../../../dist/assets/Gorush-CkwHrWz-.js" with { type: "file" }; -import asset_31 from "../../../dist/assets/Gorush-CkwHrWz-.js.br" with { type: "file" }; -import asset_32 from "../../../dist/assets/HaloPSA-DRJwNRHq.js" with { type: "file" }; -import asset_33 from "../../../dist/assets/HaloPSA-DRJwNRHq.js.br" with { type: "file" }; -import asset_34 from "../../../dist/assets/HomeAssistant-DK2Acace.js" with { type: "file" }; -import asset_35 from "../../../dist/assets/HomeAssistant-DK2Acace.js.br" with { type: "file" }; -import asset_36 from "../../../dist/assets/JiraServiceManagement-CkswtD7c.js" with { type: "file" }; -import asset_37 from "../../../dist/assets/JiraServiceManagement-CkswtD7c.js.br" with { type: "file" }; -import asset_38 from "../../../dist/assets/Kook-B6NOaBxp.js" with { type: "file" }; -import asset_39 from "../../../dist/assets/Kook-B6NOaBxp.js.br" with { type: "file" }; -import asset_40 from "../../../dist/assets/LunaSea-BDAEzGlI.js" with { type: "file" }; -import asset_41 from "../../../dist/assets/LunaSea-BDAEzGlI.js.br" with { type: "file" }; -import asset_42 from "../../../dist/assets/Matrix-bmAXZAmU.js" with { type: "file" }; -import asset_43 from "../../../dist/assets/Matrix-bmAXZAmU.js.br" with { type: "file" }; -import asset_44 from "../../../dist/assets/Mattermost-vS1IUYzN.js" with { type: "file" }; -import asset_45 from "../../../dist/assets/Mattermost-vS1IUYzN.js.br" with { type: "file" }; -import asset_46 from "../../../dist/assets/Max-CaNVZmXD.js" with { type: "file" }; -import asset_47 from "../../../dist/assets/Max-CaNVZmXD.js.br" with { type: "file" }; -import asset_48 from "../../../dist/assets/NextcloudTalk-B8AYrZHw.js" with { type: "file" }; -import asset_49 from "../../../dist/assets/NextcloudTalk-B8AYrZHw.js.br" with { type: "file" }; -import asset_50 from "../../../dist/assets/Nostr-BAr0vYoX.js" with { type: "file" }; -import asset_51 from "../../../dist/assets/Nostr-BAr0vYoX.js.br" with { type: "file" }; -import asset_52 from "../../../dist/assets/Notifications-ByJW9Ecl.js" with { type: "file" }; -import asset_53 from "../../../dist/assets/Notifications-ByJW9Ecl.js.br" with { type: "file" }; -import asset_54 from "../../../dist/assets/Notifications-DOBNTuqL.css" with { type: "file" }; -import asset_55 from "../../../dist/assets/Ntfy-UkiyQoOo.js" with { type: "file" }; -import asset_56 from "../../../dist/assets/Ntfy-UkiyQoOo.js.br" with { type: "file" }; -import asset_57 from "../../../dist/assets/Octopush-D2c6fwxq.js" with { type: "file" }; -import asset_58 from "../../../dist/assets/Octopush-D2c6fwxq.js.br" with { type: "file" }; -import asset_59 from "../../../dist/assets/OneBot-ChI6Pf3n.js" with { type: "file" }; -import asset_60 from "../../../dist/assets/OneBot-ChI6Pf3n.js.br" with { type: "file" }; -import asset_61 from "../../../dist/assets/Onesender-DwRuy1RU.css" with { type: "file" }; -import asset_62 from "../../../dist/assets/Onesender-q3TPgETQ.js" with { type: "file" }; -import asset_63 from "../../../dist/assets/Onesender-q3TPgETQ.js.br" with { type: "file" }; -import asset_64 from "../../../dist/assets/Opsgenie-Cb8ofBfw.js" with { type: "file" }; -import asset_65 from "../../../dist/assets/Opsgenie-Cb8ofBfw.js.br" with { type: "file" }; -import asset_66 from "../../../dist/assets/PagerDuty-Bc2eaguX.js" with { type: "file" }; -import asset_67 from "../../../dist/assets/PagerDuty-Bc2eaguX.js.br" with { type: "file" }; -import asset_68 from "../../../dist/assets/PagerTree-sTboY4oR.js" with { type: "file" }; -import asset_69 from "../../../dist/assets/PagerTree-sTboY4oR.js.br" with { type: "file" }; -import asset_70 from "../../../dist/assets/PingChart-Bep4kX9R.css" with { type: "file" }; -import asset_71 from "../../../dist/assets/PingChart-Bep4kX9R.css.br" with { type: "file" }; -import asset_72 from "../../../dist/assets/PingChart-ZWoeQCuP.js" with { type: "file" }; -import asset_73 from "../../../dist/assets/PingChart-ZWoeQCuP.js.br" with { type: "file" }; -import asset_74 from "../../../dist/assets/PromoSMS-BbZYSc5q.js" with { type: "file" }; -import asset_75 from "../../../dist/assets/PromoSMS-BbZYSc5q.js.br" with { type: "file" }; -import asset_76 from "../../../dist/assets/Pushbullet-wvwCRp0D.js" with { type: "file" }; -import asset_77 from "../../../dist/assets/Pushover-KofoBuyo.js" with { type: "file" }; -import asset_78 from "../../../dist/assets/Pushover-KofoBuyo.js.br" with { type: "file" }; -import asset_79 from "../../../dist/assets/RocketChat-D6LqnyeG.js" with { type: "file" }; -import asset_80 from "../../../dist/assets/RocketChat-D6LqnyeG.js.br" with { type: "file" }; -import asset_81 from "../../../dist/assets/SMSC-BV3se-u-.js" with { type: "file" }; -import asset_82 from "../../../dist/assets/SMSC-BV3se-u-.js.br" with { type: "file" }; -import asset_83 from "../../../dist/assets/SMSEagle-DrDGRMp8.js" with { type: "file" }; -import asset_84 from "../../../dist/assets/SMSEagle-DrDGRMp8.js.br" with { type: "file" }; -import asset_85 from "../../../dist/assets/SMSManager-B4GOtXh-.js" with { type: "file" }; -import asset_86 from "../../../dist/assets/SMSManager-B4GOtXh-.js.br" with { type: "file" }; -import asset_87 from "../../../dist/assets/SMSPartner-D6MDQRK7.js" with { type: "file" }; -import asset_88 from "../../../dist/assets/SMSPartner-D6MDQRK7.js.br" with { type: "file" }; -import asset_89 from "../../../dist/assets/Security-B4KLfLGb.css" with { type: "file" }; -import asset_90 from "../../../dist/assets/Security-yF8IB3Gr.js" with { type: "file" }; -import asset_91 from "../../../dist/assets/Security-yF8IB3Gr.js.br" with { type: "file" }; -import asset_92 from "../../../dist/assets/SerwerSMS-B6JKQCpp.js" with { type: "file" }; -import asset_93 from "../../../dist/assets/SerwerSMS-B6JKQCpp.js.br" with { type: "file" }; -import asset_94 from "../../../dist/assets/Settings-B4wygumt.js" with { type: "file" }; -import asset_95 from "../../../dist/assets/Settings-B4wygumt.js.br" with { type: "file" }; -import asset_96 from "../../../dist/assets/Settings-D70WUNHM.css" with { type: "file" }; -import asset_97 from "../../../dist/assets/Settings-D70WUNHM.css.br" with { type: "file" }; -import asset_98 from "../../../dist/assets/Signal-Bo1UgQRa.js" with { type: "file" }; -import asset_99 from "../../../dist/assets/Signal-Bo1UgQRa.js.br" with { type: "file" }; -import asset_100 from "../../../dist/assets/Slack-BUZIR10L.js" with { type: "file" }; -import asset_101 from "../../../dist/assets/Slack-BUZIR10L.js.br" with { type: "file" }; -import asset_102 from "../../../dist/assets/Splunk-SC_xHsBA.js" with { type: "file" }; -import asset_103 from "../../../dist/assets/Splunk-SC_xHsBA.js.br" with { type: "file" }; -import asset_104 from "../../../dist/assets/Teams-MMl2LgTF.js" with { type: "file" }; -import asset_105 from "../../../dist/assets/Teams-MMl2LgTF.js.br" with { type: "file" }; -import asset_106 from "../../../dist/assets/TechulusPush-14holwhb.js" with { type: "file" }; -import asset_107 from "../../../dist/assets/TechulusPush-14holwhb.js.br" with { type: "file" }; -import asset_108 from "../../../dist/assets/Telegram-DR1FJr0-.js" with { type: "file" }; -import asset_109 from "../../../dist/assets/Telegram-DR1FJr0-.js.br" with { type: "file" }; -import asset_110 from "../../../dist/assets/Telegram-mCG6Whjm.css" with { type: "file" }; -import asset_111 from "../../../dist/assets/Telnyx-D8EOYXan.js" with { type: "file" }; -import asset_112 from "../../../dist/assets/Telnyx-D8EOYXan.js.br" with { type: "file" }; -import asset_113 from "../../../dist/assets/Teltonika-CMCuVo7q.js" with { type: "file" }; -import asset_114 from "../../../dist/assets/Teltonika-CMCuVo7q.js.br" with { type: "file" }; -import asset_115 from "../../../dist/assets/TemplatedField-3xV9PaQs.css" with { type: "file" }; -import asset_116 from "../../../dist/assets/TemplatedField-Cg9i27FI.js" with { type: "file" }; -import asset_117 from "../../../dist/assets/TemplatedField-Cg9i27FI.js.br" with { type: "file" }; -import asset_118 from "../../../dist/assets/Threema-DRHHtEcS.js" with { type: "file" }; -import asset_119 from "../../../dist/assets/Threema-DRHHtEcS.js.br" with { type: "file" }; -import asset_120 from "../../../dist/assets/Twilio-BpjrtyWr.js" with { type: "file" }; -import asset_121 from "../../../dist/assets/Twilio-BpjrtyWr.js.br" with { type: "file" }; -import asset_122 from "../../../dist/assets/VK-Bs2wUR92.js" with { type: "file" }; -import asset_123 from "../../../dist/assets/VK-Bs2wUR92.js.br" with { type: "file" }; -import asset_124 from "../../../dist/assets/VKTeams-6-LG_Hwf.js" with { type: "file" }; -import asset_125 from "../../../dist/assets/VKTeams-6-LG_Hwf.js.br" with { type: "file" }; -import asset_126 from "../../../dist/assets/WAHA-CQtVvX18.js" with { type: "file" }; -import asset_127 from "../../../dist/assets/WAHA-CQtVvX18.js.br" with { type: "file" }; -import asset_128 from "../../../dist/assets/WeCom-jx67PrNE.js" with { type: "file" }; -import asset_129 from "../../../dist/assets/WeCom-jx67PrNE.js.br" with { type: "file" }; -import asset_130 from "../../../dist/assets/Webhook-B7DRkOwU.js" with { type: "file" }; -import asset_131 from "../../../dist/assets/Webhook-B7DRkOwU.js.br" with { type: "file" }; -import asset_132 from "../../../dist/assets/Webhook-DVMQpIZq.css" with { type: "file" }; -import asset_133 from "../../../dist/assets/Webpush-DW94MZHC.js" with { type: "file" }; -import asset_134 from "../../../dist/assets/Webpush-DW94MZHC.js.br" with { type: "file" }; -import asset_135 from "../../../dist/assets/Whapi-Cn9ks6YW.js" with { type: "file" }; -import asset_136 from "../../../dist/assets/Whapi-Cn9ks6YW.js.br" with { type: "file" }; -import asset_137 from "../../../dist/assets/ab-yoD6TSFD.js" with { type: "file" }; -import asset_138 from "../../../dist/assets/af-ocyQpLBl.js" with { type: "file" }; -import asset_139 from "../../../dist/assets/af-ocyQpLBl.js.br" with { type: "file" }; -import asset_140 from "../../../dist/assets/ang-DvzI6CwH.js" with { type: "file" }; -import asset_141 from "../../../dist/assets/app-BEZmPb6x.css" with { type: "file" }; -import asset_142 from "../../../dist/assets/app-BEZmPb6x.css.br" with { type: "file" }; -import asset_143 from "../../../dist/assets/app-Bn_th_U8.js" with { type: "file" }; -import asset_144 from "../../../dist/assets/app-Bn_th_U8.js.br" with { type: "file" }; -import asset_145 from "../../../dist/assets/ar-QxQUPEOj.js" with { type: "file" }; -import asset_146 from "../../../dist/assets/ar-QxQUPEOj.js.br" with { type: "file" }; -import asset_147 from "../../../dist/assets/ar-SY-DmU77yT8.js" with { type: "file" }; -import asset_148 from "../../../dist/assets/ar-SY-DmU77yT8.js.br" with { type: "file" }; -import asset_149 from "../../../dist/assets/bar-CZyRTwdP.js" with { type: "file" }; -import asset_150 from "../../../dist/assets/bar-CZyRTwdP.js.br" with { type: "file" }; -import asset_151 from "../../../dist/assets/be-CC7C8TU0.js" with { type: "file" }; -import asset_152 from "../../../dist/assets/be-CC7C8TU0.js.br" with { type: "file" }; -import asset_153 from "../../../dist/assets/bg-BG-CvwYNNNV.js" with { type: "file" }; -import asset_154 from "../../../dist/assets/bg-BG-CvwYNNNV.js.br" with { type: "file" }; -import asset_155 from "../../../dist/assets/bn-Cvb5zemC.js" with { type: "file" }; -import asset_156 from "../../../dist/assets/bn-Cvb5zemC.js.br" with { type: "file" }; -import asset_157 from "../../../dist/assets/ca-BBDq8Gvl.js" with { type: "file" }; -import asset_158 from "../../../dist/assets/ca-BBDq8Gvl.js.br" with { type: "file" }; -import asset_159 from "../../../dist/assets/ca@valencia-Bmoa0jo_.js" with { type: "file" }; -import asset_160 from "../../../dist/assets/ckb-B0Dg07VY.js" with { type: "file" }; -import asset_161 from "../../../dist/assets/ckb-B0Dg07VY.js.br" with { type: "file" }; -import asset_162 from "../../../dist/assets/cs-CZ-DnwbQgGP.js" with { type: "file" }; -import asset_163 from "../../../dist/assets/cs-CZ-DnwbQgGP.js.br" with { type: "file" }; -import asset_164 from "../../../dist/assets/da-DK-Uu1uRlre.js" with { type: "file" }; -import asset_165 from "../../../dist/assets/da-DK-Uu1uRlre.js.br" with { type: "file" }; -import asset_166 from "../../../dist/assets/de-CH-DHxeZaHV.js" with { type: "file" }; -import asset_167 from "../../../dist/assets/de-CH-DHxeZaHV.js.br" with { type: "file" }; -import asset_168 from "../../../dist/assets/de-DE-CAqfYv68.js" with { type: "file" }; -import asset_169 from "../../../dist/assets/de-DE-CAqfYv68.js.br" with { type: "file" }; -import asset_170 from "../../../dist/assets/el-GR-CO0_OCCI.js" with { type: "file" }; -import asset_171 from "../../../dist/assets/el-GR-CO0_OCCI.js.br" with { type: "file" }; -import asset_172 from "../../../dist/assets/en_GB-yvkIt-5R.js" with { type: "file" }; -import asset_173 from "../../../dist/assets/en_GB-yvkIt-5R.js.br" with { type: "file" }; -import asset_174 from "../../../dist/assets/enm-BIHI7g3E.js" with { type: "file" }; -import asset_175 from "../../../dist/assets/es-ES-T27ouqya.js" with { type: "file" }; -import asset_176 from "../../../dist/assets/es-ES-T27ouqya.js.br" with { type: "file" }; -import asset_177 from "../../../dist/assets/et-EE-Mvk-7qPX.js" with { type: "file" }; -import asset_178 from "../../../dist/assets/et-EE-Mvk-7qPX.js.br" with { type: "file" }; -import asset_179 from "../../../dist/assets/eu-BiuGcknf.js" with { type: "file" }; -import asset_180 from "../../../dist/assets/eu-BiuGcknf.js.br" with { type: "file" }; -import asset_181 from "../../../dist/assets/fa-fErZLnLG.js" with { type: "file" }; -import asset_182 from "../../../dist/assets/fa-fErZLnLG.js.br" with { type: "file" }; -import asset_183 from "../../../dist/assets/fi-BVPghBsR.js" with { type: "file" }; -import asset_184 from "../../../dist/assets/fi-BVPghBsR.js.br" with { type: "file" }; -import asset_185 from "../../../dist/assets/fr-FR-Dj4kPCzB.js" with { type: "file" }; -import asset_186 from "../../../dist/assets/fr-FR-Dj4kPCzB.js.br" with { type: "file" }; -import asset_187 from "../../../dist/assets/ga-Dx9DQ0wZ.js" with { type: "file" }; -import asset_188 from "../../../dist/assets/ga-Dx9DQ0wZ.js.br" with { type: "file" }; -import asset_189 from "../../../dist/assets/gl-BopwF_Em.js" with { type: "file" }; -import asset_190 from "../../../dist/assets/he-IL-BOcIPYOI.js" with { type: "file" }; -import asset_191 from "../../../dist/assets/he-IL-BOcIPYOI.js.br" with { type: "file" }; -import asset_192 from "../../../dist/assets/he-qucbXYuz.js" with { type: "file" }; -import asset_193 from "../../../dist/assets/hi-BEOOKJDi.js" with { type: "file" }; -import asset_194 from "../../../dist/assets/hi-BEOOKJDi.js.br" with { type: "file" }; -import asset_195 from "../../../dist/assets/hr-HR-w4z__YHU.js" with { type: "file" }; -import asset_196 from "../../../dist/assets/hr-HR-w4z__YHU.js.br" with { type: "file" }; -import asset_197 from "../../../dist/assets/hu-DOLKPlWc.js" with { type: "file" }; -import asset_198 from "../../../dist/assets/hu-DOLKPlWc.js.br" with { type: "file" }; -import asset_199 from "../../../dist/assets/id-ID-BI0zcpzI.js" with { type: "file" }; -import asset_200 from "../../../dist/assets/id-ID-BI0zcpzI.js.br" with { type: "file" }; -import asset_201 from "../../../dist/assets/it-IT-hCqpWYjk.js" with { type: "file" }; -import asset_202 from "../../../dist/assets/it-IT-hCqpWYjk.js.br" with { type: "file" }; -import asset_203 from "../../../dist/assets/ja-BjWlAbnW.js" with { type: "file" }; -import asset_204 from "../../../dist/assets/ja-BjWlAbnW.js.br" with { type: "file" }; -import asset_205 from "../../../dist/assets/ka-CADmXGi4.js" with { type: "file" }; -import asset_206 from "../../../dist/assets/ka-CADmXGi4.js.br" with { type: "file" }; -import asset_207 from "../../../dist/assets/ko-KR-U5qmTrEv.js" with { type: "file" }; -import asset_208 from "../../../dist/assets/ko-KR-U5qmTrEv.js.br" with { type: "file" }; -import asset_209 from "../../../dist/assets/lt-B8Oc1D04.js" with { type: "file" }; -import asset_210 from "../../../dist/assets/lt-B8Oc1D04.js.br" with { type: "file" }; -import asset_211 from "../../../dist/assets/lv-txq_hXsd.js" with { type: "file" }; -import asset_212 from "../../../dist/assets/lv-txq_hXsd.js.br" with { type: "file" }; -import asset_213 from "../../../dist/assets/lzh-FmFgRqLi.js" with { type: "file" }; -import asset_214 from "../../../dist/assets/mk-3AWbqCV_.js" with { type: "file" }; -import asset_215 from "../../../dist/assets/mk-3AWbqCV_.js.br" with { type: "file" }; -import asset_216 from "../../../dist/assets/ml-BIDa4qZE.js" with { type: "file" }; -import asset_217 from "../../../dist/assets/ml-BIDa4qZE.js.br" with { type: "file" }; -import asset_218 from "../../../dist/assets/ms-CtLG-NKo.js" with { type: "file" }; -import asset_219 from "../../../dist/assets/ms-CtLG-NKo.js.br" with { type: "file" }; -import asset_220 from "../../../dist/assets/my-C5JuY2jW.js" with { type: "file" }; -import asset_221 from "../../../dist/assets/my-C5JuY2jW.js.br" with { type: "file" }; -import asset_222 from "../../../dist/assets/nb-NO-C260Tyhr.js" with { type: "file" }; -import asset_223 from "../../../dist/assets/nb-NO-C260Tyhr.js.br" with { type: "file" }; -import asset_224 from "../../../dist/assets/ne-BIHI7g3E.js" with { type: "file" }; -import asset_225 from "../../../dist/assets/nl-NL-vROxtrUI.js" with { type: "file" }; -import asset_226 from "../../../dist/assets/nl-NL-vROxtrUI.js.br" with { type: "file" }; -import asset_227 from "../../../dist/assets/pa-BRBLb6cU.js" with { type: "file" }; -import asset_228 from "../../../dist/assets/pa-BRBLb6cU.js.br" with { type: "file" }; -import asset_229 from "../../../dist/assets/pa_PK-Cno1crvw.js" with { type: "file" }; -import asset_230 from "../../../dist/assets/pa_PK-Cno1crvw.js.br" with { type: "file" }; -import asset_231 from "../../../dist/assets/pl-CVCVehuS.js" with { type: "file" }; -import asset_232 from "../../../dist/assets/pl-CVCVehuS.js.br" with { type: "file" }; -import asset_233 from "../../../dist/assets/pt-BR-D2bgQOy1.js" with { type: "file" }; -import asset_234 from "../../../dist/assets/pt-BR-D2bgQOy1.js.br" with { type: "file" }; -import asset_235 from "../../../dist/assets/pt-DPZBVWj_.js" with { type: "file" }; -import asset_236 from "../../../dist/assets/pt-DPZBVWj_.js.br" with { type: "file" }; -import asset_237 from "../../../dist/assets/pt-PT-q70KYsUX.js" with { type: "file" }; -import asset_238 from "../../../dist/assets/pt-PT-q70KYsUX.js.br" with { type: "file" }; -import asset_239 from "../../../dist/assets/ro-CP9bAk74.js" with { type: "file" }; -import asset_240 from "../../../dist/assets/ro-CP9bAk74.js.br" with { type: "file" }; -import asset_241 from "../../../dist/assets/ru-RU-BZTf8LZT.js" with { type: "file" }; -import asset_242 from "../../../dist/assets/ru-RU-BZTf8LZT.js.br" with { type: "file" }; -import asset_243 from "../../../dist/assets/sk-BI_8qGbR.js" with { type: "file" }; -import asset_244 from "../../../dist/assets/sk-BI_8qGbR.js.br" with { type: "file" }; -import asset_245 from "../../../dist/assets/sl-SI-CStxkOrp.js" with { type: "file" }; -import asset_246 from "../../../dist/assets/sl-SI-CStxkOrp.js.br" with { type: "file" }; -import asset_247 from "../../../dist/assets/sq-hgmf8Lv_.js" with { type: "file" }; -import asset_248 from "../../../dist/assets/sq-hgmf8Lv_.js.br" with { type: "file" }; -import asset_249 from "../../../dist/assets/sr-BYUc0ifk.js" with { type: "file" }; -import asset_250 from "../../../dist/assets/sr-BYUc0ifk.js.br" with { type: "file" }; -import asset_251 from "../../../dist/assets/sr-latn-DLTxrQRc.js" with { type: "file" }; -import asset_252 from "../../../dist/assets/sr-latn-DLTxrQRc.js.br" with { type: "file" }; -import asset_253 from "../../../dist/assets/sv-SE-sHOCbmPD.js" with { type: "file" }; -import asset_254 from "../../../dist/assets/sv-SE-sHOCbmPD.js.br" with { type: "file" }; -import asset_255 from "../../../dist/assets/te-D4Pk49ZH.js" with { type: "file" }; -import asset_256 from "../../../dist/assets/te-D4Pk49ZH.js.br" with { type: "file" }; -import asset_257 from "../../../dist/assets/th-TH-BD5pcLIF.js" with { type: "file" }; -import asset_258 from "../../../dist/assets/th-TH-BD5pcLIF.js.br" with { type: "file" }; -import asset_259 from "../../../dist/assets/tr-TR-DevJCF-_.js" with { type: "file" }; -import asset_260 from "../../../dist/assets/tr-TR-DevJCF-_.js.br" with { type: "file" }; -import asset_261 from "../../../dist/assets/ug-FmFgRqLi.js" with { type: "file" }; -import asset_262 from "../../../dist/assets/uk-UA-mN1U8373.js" with { type: "file" }; -import asset_263 from "../../../dist/assets/uk-UA-mN1U8373.js.br" with { type: "file" }; -import asset_264 from "../../../dist/assets/ur-BCHsWxop.js" with { type: "file" }; -import asset_265 from "../../../dist/assets/ur-BCHsWxop.js.br" with { type: "file" }; -import asset_266 from "../../../dist/assets/uz-DibgCxss.js" with { type: "file" }; -import asset_267 from "../../../dist/assets/uz-DibgCxss.js.br" with { type: "file" }; -import asset_268 from "../../../dist/assets/vi-VN-CVaTEGQn.js" with { type: "file" }; -import asset_269 from "../../../dist/assets/vi-VN-CVaTEGQn.js.br" with { type: "file" }; -import asset_270 from "../../../dist/assets/vls-CMFHD4Tc.js" with { type: "file" }; -import asset_271 from "../../../dist/assets/vls-CMFHD4Tc.js.br" with { type: "file" }; -import asset_272 from "../../../dist/assets/xh-B8qF1PHg.js" with { type: "file" }; -import asset_273 from "../../../dist/assets/yue-1H6Q6vLc.js" with { type: "file" }; -import asset_274 from "../../../dist/assets/yue-1H6Q6vLc.js.br" with { type: "file" }; -import asset_275 from "../../../dist/assets/zh-CN-YBOwjAAP.js" with { type: "file" }; -import asset_276 from "../../../dist/assets/zh-CN-YBOwjAAP.js.br" with { type: "file" }; -import asset_277 from "../../../dist/assets/zh-HK-DxsGIvmw.js" with { type: "file" }; -import asset_278 from "../../../dist/assets/zh-HK-DxsGIvmw.js.br" with { type: "file" }; -import asset_279 from "../../../dist/assets/zh-TW-BaNdHic_.js" with { type: "file" }; -import asset_280 from "../../../dist/assets/zh-TW-BaNdHic_.js.br" with { type: "file" }; -import asset_281 from "../../../dist/assets/zu-Bkonllnf.js" with { type: "file" }; -import asset_282 from "../../../dist/assets/zu-Bkonllnf.js.br" with { type: "file" }; -import asset_283 from "../../../dist/favicon.ico" with { type: "file" }; -import asset_284 from "../../../dist/icon-192x192.png" with { type: "file" }; -import asset_285 from "../../../dist/icon-512x512.png" with { type: "file" }; -import asset_286 from "../../../dist/icon.png" with { type: "file" }; -import asset_287 from "../../../dist/icon.svg" with { type: "file" }; -import asset_288 from "../../../dist/icon.svg.br" with { type: "file" }; -import asset_289 from "../../../dist/index.html" with { type: "file" }; -import asset_290 from "../../../dist/index.html.br" with { type: "file" }; -import asset_291 from "../../../dist/manifest.json" with { type: "file" }; -import asset_292 from "../../../dist/manifest.json.br" with { type: "file" }; -import asset_293 from "../../../dist/serviceWorker.js" with { type: "file" }; - -const embeddedWebAssets = { - "apple-touch-icon-precomposed.png": asset_0, - "apple-touch-icon.png": asset_1, - "assets/360messenger--cUQkhrE.js": asset_2, - "assets/360messenger--cUQkhrE.js.br": asset_3, - "assets/360messenger-Bl7atNPL.css": asset_4, - "assets/Alerta-CJ5mF3E3.js": asset_5, - "assets/Alerta-CJ5mF3E3.js.br": asset_6, - "assets/AliyunSms-DupH74Tw.js": asset_7, - "assets/AliyunSms-DupH74Tw.js.br": asset_8, - "assets/Apprise-BzeZoNPk.js": asset_9, - "assets/Apprise-BzeZoNPk.js.br": asset_10, - "assets/Bale-DKdDCGq_.js": asset_11, - "assets/Bale-DKdDCGq_.js.br": asset_12, - "assets/Bark-D1aoW3bY.js": asset_13, - "assets/Bark-D1aoW3bY.js.br": asset_14, - "assets/Cellsynt-DU30FKya.js": asset_15, - "assets/Cellsynt-DU30FKya.js.br": asset_16, - "assets/DingDing-Cz6OHYE2.js": asset_17, - "assets/DingDing-Cz6OHYE2.js.br": asset_18, - "assets/Discord-DNKNc-px.js": asset_19, - "assets/Discord-DNKNc-px.js.br": asset_20, - "assets/Evolution-BAdGYcNh.js": asset_21, - "assets/Evolution-BAdGYcNh.js.br": asset_22, - "assets/Feishu-DAvqJye1.js": asset_23, - "assets/Fluxer-uQWti-ai.js": asset_24, - "assets/Fluxer-uQWti-ai.js.br": asset_25, - "assets/GoogleChat-BVSDKnbf.js": asset_26, - "assets/GoogleChat-BVSDKnbf.js.br": asset_27, - "assets/GoogleSheets-0Sx0OMVJ.js": asset_28, - "assets/GoogleSheets-0Sx0OMVJ.js.br": asset_29, - "assets/Gorush-CkwHrWz-.js": asset_30, - "assets/Gorush-CkwHrWz-.js.br": asset_31, - "assets/HaloPSA-DRJwNRHq.js": asset_32, - "assets/HaloPSA-DRJwNRHq.js.br": asset_33, - "assets/HomeAssistant-DK2Acace.js": asset_34, - "assets/HomeAssistant-DK2Acace.js.br": asset_35, - "assets/JiraServiceManagement-CkswtD7c.js": asset_36, - "assets/JiraServiceManagement-CkswtD7c.js.br": asset_37, - "assets/Kook-B6NOaBxp.js": asset_38, - "assets/Kook-B6NOaBxp.js.br": asset_39, - "assets/LunaSea-BDAEzGlI.js": asset_40, - "assets/LunaSea-BDAEzGlI.js.br": asset_41, - "assets/Matrix-bmAXZAmU.js": asset_42, - "assets/Matrix-bmAXZAmU.js.br": asset_43, - "assets/Mattermost-vS1IUYzN.js": asset_44, - "assets/Mattermost-vS1IUYzN.js.br": asset_45, - "assets/Max-CaNVZmXD.js": asset_46, - "assets/Max-CaNVZmXD.js.br": asset_47, - "assets/NextcloudTalk-B8AYrZHw.js": asset_48, - "assets/NextcloudTalk-B8AYrZHw.js.br": asset_49, - "assets/Nostr-BAr0vYoX.js": asset_50, - "assets/Nostr-BAr0vYoX.js.br": asset_51, - "assets/Notifications-ByJW9Ecl.js": asset_52, - "assets/Notifications-ByJW9Ecl.js.br": asset_53, - "assets/Notifications-DOBNTuqL.css": asset_54, - "assets/Ntfy-UkiyQoOo.js": asset_55, - "assets/Ntfy-UkiyQoOo.js.br": asset_56, - "assets/Octopush-D2c6fwxq.js": asset_57, - "assets/Octopush-D2c6fwxq.js.br": asset_58, - "assets/OneBot-ChI6Pf3n.js": asset_59, - "assets/OneBot-ChI6Pf3n.js.br": asset_60, - "assets/Onesender-DwRuy1RU.css": asset_61, - "assets/Onesender-q3TPgETQ.js": asset_62, - "assets/Onesender-q3TPgETQ.js.br": asset_63, - "assets/Opsgenie-Cb8ofBfw.js": asset_64, - "assets/Opsgenie-Cb8ofBfw.js.br": asset_65, - "assets/PagerDuty-Bc2eaguX.js": asset_66, - "assets/PagerDuty-Bc2eaguX.js.br": asset_67, - "assets/PagerTree-sTboY4oR.js": asset_68, - "assets/PagerTree-sTboY4oR.js.br": asset_69, - "assets/PingChart-Bep4kX9R.css": asset_70, - "assets/PingChart-Bep4kX9R.css.br": asset_71, - "assets/PingChart-ZWoeQCuP.js": asset_72, - "assets/PingChart-ZWoeQCuP.js.br": asset_73, - "assets/PromoSMS-BbZYSc5q.js": asset_74, - "assets/PromoSMS-BbZYSc5q.js.br": asset_75, - "assets/Pushbullet-wvwCRp0D.js": asset_76, - "assets/Pushover-KofoBuyo.js": asset_77, - "assets/Pushover-KofoBuyo.js.br": asset_78, - "assets/RocketChat-D6LqnyeG.js": asset_79, - "assets/RocketChat-D6LqnyeG.js.br": asset_80, - "assets/SMSC-BV3se-u-.js": asset_81, - "assets/SMSC-BV3se-u-.js.br": asset_82, - "assets/SMSEagle-DrDGRMp8.js": asset_83, - "assets/SMSEagle-DrDGRMp8.js.br": asset_84, - "assets/SMSManager-B4GOtXh-.js": asset_85, - "assets/SMSManager-B4GOtXh-.js.br": asset_86, - "assets/SMSPartner-D6MDQRK7.js": asset_87, - "assets/SMSPartner-D6MDQRK7.js.br": asset_88, - "assets/Security-B4KLfLGb.css": asset_89, - "assets/Security-yF8IB3Gr.js": asset_90, - "assets/Security-yF8IB3Gr.js.br": asset_91, - "assets/SerwerSMS-B6JKQCpp.js": asset_92, - "assets/SerwerSMS-B6JKQCpp.js.br": asset_93, - "assets/Settings-B4wygumt.js": asset_94, - "assets/Settings-B4wygumt.js.br": asset_95, - "assets/Settings-D70WUNHM.css": asset_96, - "assets/Settings-D70WUNHM.css.br": asset_97, - "assets/Signal-Bo1UgQRa.js": asset_98, - "assets/Signal-Bo1UgQRa.js.br": asset_99, - "assets/Slack-BUZIR10L.js": asset_100, - "assets/Slack-BUZIR10L.js.br": asset_101, - "assets/Splunk-SC_xHsBA.js": asset_102, - "assets/Splunk-SC_xHsBA.js.br": asset_103, - "assets/Teams-MMl2LgTF.js": asset_104, - "assets/Teams-MMl2LgTF.js.br": asset_105, - "assets/TechulusPush-14holwhb.js": asset_106, - "assets/TechulusPush-14holwhb.js.br": asset_107, - "assets/Telegram-DR1FJr0-.js": asset_108, - "assets/Telegram-DR1FJr0-.js.br": asset_109, - "assets/Telegram-mCG6Whjm.css": asset_110, - "assets/Telnyx-D8EOYXan.js": asset_111, - "assets/Telnyx-D8EOYXan.js.br": asset_112, - "assets/Teltonika-CMCuVo7q.js": asset_113, - "assets/Teltonika-CMCuVo7q.js.br": asset_114, - "assets/TemplatedField-3xV9PaQs.css": asset_115, - "assets/TemplatedField-Cg9i27FI.js": asset_116, - "assets/TemplatedField-Cg9i27FI.js.br": asset_117, - "assets/Threema-DRHHtEcS.js": asset_118, - "assets/Threema-DRHHtEcS.js.br": asset_119, - "assets/Twilio-BpjrtyWr.js": asset_120, - "assets/Twilio-BpjrtyWr.js.br": asset_121, - "assets/VK-Bs2wUR92.js": asset_122, - "assets/VK-Bs2wUR92.js.br": asset_123, - "assets/VKTeams-6-LG_Hwf.js": asset_124, - "assets/VKTeams-6-LG_Hwf.js.br": asset_125, - "assets/WAHA-CQtVvX18.js": asset_126, - "assets/WAHA-CQtVvX18.js.br": asset_127, - "assets/WeCom-jx67PrNE.js": asset_128, - "assets/WeCom-jx67PrNE.js.br": asset_129, - "assets/Webhook-B7DRkOwU.js": asset_130, - "assets/Webhook-B7DRkOwU.js.br": asset_131, - "assets/Webhook-DVMQpIZq.css": asset_132, - "assets/Webpush-DW94MZHC.js": asset_133, - "assets/Webpush-DW94MZHC.js.br": asset_134, - "assets/Whapi-Cn9ks6YW.js": asset_135, - "assets/Whapi-Cn9ks6YW.js.br": asset_136, - "assets/ab-yoD6TSFD.js": asset_137, - "assets/af-ocyQpLBl.js": asset_138, - "assets/af-ocyQpLBl.js.br": asset_139, - "assets/ang-DvzI6CwH.js": asset_140, - "assets/app-BEZmPb6x.css": asset_141, - "assets/app-BEZmPb6x.css.br": asset_142, - "assets/app-Bn_th_U8.js": asset_143, - "assets/app-Bn_th_U8.js.br": asset_144, - "assets/ar-QxQUPEOj.js": asset_145, - "assets/ar-QxQUPEOj.js.br": asset_146, - "assets/ar-SY-DmU77yT8.js": asset_147, - "assets/ar-SY-DmU77yT8.js.br": asset_148, - "assets/bar-CZyRTwdP.js": asset_149, - "assets/bar-CZyRTwdP.js.br": asset_150, - "assets/be-CC7C8TU0.js": asset_151, - "assets/be-CC7C8TU0.js.br": asset_152, - "assets/bg-BG-CvwYNNNV.js": asset_153, - "assets/bg-BG-CvwYNNNV.js.br": asset_154, - "assets/bn-Cvb5zemC.js": asset_155, - "assets/bn-Cvb5zemC.js.br": asset_156, - "assets/ca-BBDq8Gvl.js": asset_157, - "assets/ca-BBDq8Gvl.js.br": asset_158, - "assets/ca@valencia-Bmoa0jo_.js": asset_159, - "assets/ckb-B0Dg07VY.js": asset_160, - "assets/ckb-B0Dg07VY.js.br": asset_161, - "assets/cs-CZ-DnwbQgGP.js": asset_162, - "assets/cs-CZ-DnwbQgGP.js.br": asset_163, - "assets/da-DK-Uu1uRlre.js": asset_164, - "assets/da-DK-Uu1uRlre.js.br": asset_165, - "assets/de-CH-DHxeZaHV.js": asset_166, - "assets/de-CH-DHxeZaHV.js.br": asset_167, - "assets/de-DE-CAqfYv68.js": asset_168, - "assets/de-DE-CAqfYv68.js.br": asset_169, - "assets/el-GR-CO0_OCCI.js": asset_170, - "assets/el-GR-CO0_OCCI.js.br": asset_171, - "assets/en_GB-yvkIt-5R.js": asset_172, - "assets/en_GB-yvkIt-5R.js.br": asset_173, - "assets/enm-BIHI7g3E.js": asset_174, - "assets/es-ES-T27ouqya.js": asset_175, - "assets/es-ES-T27ouqya.js.br": asset_176, - "assets/et-EE-Mvk-7qPX.js": asset_177, - "assets/et-EE-Mvk-7qPX.js.br": asset_178, - "assets/eu-BiuGcknf.js": asset_179, - "assets/eu-BiuGcknf.js.br": asset_180, - "assets/fa-fErZLnLG.js": asset_181, - "assets/fa-fErZLnLG.js.br": asset_182, - "assets/fi-BVPghBsR.js": asset_183, - "assets/fi-BVPghBsR.js.br": asset_184, - "assets/fr-FR-Dj4kPCzB.js": asset_185, - "assets/fr-FR-Dj4kPCzB.js.br": asset_186, - "assets/ga-Dx9DQ0wZ.js": asset_187, - "assets/ga-Dx9DQ0wZ.js.br": asset_188, - "assets/gl-BopwF_Em.js": asset_189, - "assets/he-IL-BOcIPYOI.js": asset_190, - "assets/he-IL-BOcIPYOI.js.br": asset_191, - "assets/he-qucbXYuz.js": asset_192, - "assets/hi-BEOOKJDi.js": asset_193, - "assets/hi-BEOOKJDi.js.br": asset_194, - "assets/hr-HR-w4z__YHU.js": asset_195, - "assets/hr-HR-w4z__YHU.js.br": asset_196, - "assets/hu-DOLKPlWc.js": asset_197, - "assets/hu-DOLKPlWc.js.br": asset_198, - "assets/id-ID-BI0zcpzI.js": asset_199, - "assets/id-ID-BI0zcpzI.js.br": asset_200, - "assets/it-IT-hCqpWYjk.js": asset_201, - "assets/it-IT-hCqpWYjk.js.br": asset_202, - "assets/ja-BjWlAbnW.js": asset_203, - "assets/ja-BjWlAbnW.js.br": asset_204, - "assets/ka-CADmXGi4.js": asset_205, - "assets/ka-CADmXGi4.js.br": asset_206, - "assets/ko-KR-U5qmTrEv.js": asset_207, - "assets/ko-KR-U5qmTrEv.js.br": asset_208, - "assets/lt-B8Oc1D04.js": asset_209, - "assets/lt-B8Oc1D04.js.br": asset_210, - "assets/lv-txq_hXsd.js": asset_211, - "assets/lv-txq_hXsd.js.br": asset_212, - "assets/lzh-FmFgRqLi.js": asset_213, - "assets/mk-3AWbqCV_.js": asset_214, - "assets/mk-3AWbqCV_.js.br": asset_215, - "assets/ml-BIDa4qZE.js": asset_216, - "assets/ml-BIDa4qZE.js.br": asset_217, - "assets/ms-CtLG-NKo.js": asset_218, - "assets/ms-CtLG-NKo.js.br": asset_219, - "assets/my-C5JuY2jW.js": asset_220, - "assets/my-C5JuY2jW.js.br": asset_221, - "assets/nb-NO-C260Tyhr.js": asset_222, - "assets/nb-NO-C260Tyhr.js.br": asset_223, - "assets/ne-BIHI7g3E.js": asset_224, - "assets/nl-NL-vROxtrUI.js": asset_225, - "assets/nl-NL-vROxtrUI.js.br": asset_226, - "assets/pa-BRBLb6cU.js": asset_227, - "assets/pa-BRBLb6cU.js.br": asset_228, - "assets/pa_PK-Cno1crvw.js": asset_229, - "assets/pa_PK-Cno1crvw.js.br": asset_230, - "assets/pl-CVCVehuS.js": asset_231, - "assets/pl-CVCVehuS.js.br": asset_232, - "assets/pt-BR-D2bgQOy1.js": asset_233, - "assets/pt-BR-D2bgQOy1.js.br": asset_234, - "assets/pt-DPZBVWj_.js": asset_235, - "assets/pt-DPZBVWj_.js.br": asset_236, - "assets/pt-PT-q70KYsUX.js": asset_237, - "assets/pt-PT-q70KYsUX.js.br": asset_238, - "assets/ro-CP9bAk74.js": asset_239, - "assets/ro-CP9bAk74.js.br": asset_240, - "assets/ru-RU-BZTf8LZT.js": asset_241, - "assets/ru-RU-BZTf8LZT.js.br": asset_242, - "assets/sk-BI_8qGbR.js": asset_243, - "assets/sk-BI_8qGbR.js.br": asset_244, - "assets/sl-SI-CStxkOrp.js": asset_245, - "assets/sl-SI-CStxkOrp.js.br": asset_246, - "assets/sq-hgmf8Lv_.js": asset_247, - "assets/sq-hgmf8Lv_.js.br": asset_248, - "assets/sr-BYUc0ifk.js": asset_249, - "assets/sr-BYUc0ifk.js.br": asset_250, - "assets/sr-latn-DLTxrQRc.js": asset_251, - "assets/sr-latn-DLTxrQRc.js.br": asset_252, - "assets/sv-SE-sHOCbmPD.js": asset_253, - "assets/sv-SE-sHOCbmPD.js.br": asset_254, - "assets/te-D4Pk49ZH.js": asset_255, - "assets/te-D4Pk49ZH.js.br": asset_256, - "assets/th-TH-BD5pcLIF.js": asset_257, - "assets/th-TH-BD5pcLIF.js.br": asset_258, - "assets/tr-TR-DevJCF-_.js": asset_259, - "assets/tr-TR-DevJCF-_.js.br": asset_260, - "assets/ug-FmFgRqLi.js": asset_261, - "assets/uk-UA-mN1U8373.js": asset_262, - "assets/uk-UA-mN1U8373.js.br": asset_263, - "assets/ur-BCHsWxop.js": asset_264, - "assets/ur-BCHsWxop.js.br": asset_265, - "assets/uz-DibgCxss.js": asset_266, - "assets/uz-DibgCxss.js.br": asset_267, - "assets/vi-VN-CVaTEGQn.js": asset_268, - "assets/vi-VN-CVaTEGQn.js.br": asset_269, - "assets/vls-CMFHD4Tc.js": asset_270, - "assets/vls-CMFHD4Tc.js.br": asset_271, - "assets/xh-B8qF1PHg.js": asset_272, - "assets/yue-1H6Q6vLc.js": asset_273, - "assets/yue-1H6Q6vLc.js.br": asset_274, - "assets/zh-CN-YBOwjAAP.js": asset_275, - "assets/zh-CN-YBOwjAAP.js.br": asset_276, - "assets/zh-HK-DxsGIvmw.js": asset_277, - "assets/zh-HK-DxsGIvmw.js.br": asset_278, - "assets/zh-TW-BaNdHic_.js": asset_279, - "assets/zh-TW-BaNdHic_.js.br": asset_280, - "assets/zu-Bkonllnf.js": asset_281, - "assets/zu-Bkonllnf.js.br": asset_282, - "favicon.ico": asset_283, - "icon-192x192.png": asset_284, - "icon-512x512.png": asset_285, - "icon.png": asset_286, - "icon.svg": asset_287, - "icon.svg.br": asset_288, - "index.html": asset_289, - "index.html.br": asset_290, - "manifest.json": asset_291, - "manifest.json.br": asset_292, - "serviceWorker.js": asset_293, -}; - -function hasEmbeddedAsset(webPath) { - return Object.prototype.hasOwnProperty.call(embeddedWebAssets, webPath); -} - -function getEmbeddedAssetRef(webPath) { - return embeddedWebAssets[webPath]; -} - -async function readEmbeddedAsset(webPath) { - const ref = embeddedWebAssets[webPath]; - if (!ref) { - return null; - } - - const file = Bun.file(ref); - if (!(await file.exists())) { - return null; - } - - return file; -} - -async function readEmbeddedAssetText(webPath) { - const file = await readEmbeddedAsset(webPath); - if (!file) { - return null; - } - - return file.text(); -} - -export { - embeddedWebAssets, - hasEmbeddedAsset, - getEmbeddedAssetRef, - readEmbeddedAsset, - readEmbeddedAssetText, -}; diff --git a/src/server/generated/frontend-entry-assets.ts b/src/server/generated/frontend-entry-assets.ts deleted file mode 100644 index 9468fbcff..000000000 --- a/src/server/generated/frontend-entry-assets.ts +++ /dev/null @@ -1,12 +0,0 @@ -// @ts-nocheck -// AUTO-GENERATED by scripts/build/generate-embedded-assets.ts — do not edit. - -const frontendEntryAssets = { - "mainScript": "assets/app-Bn_th_U8.js", - "styles": [ - "assets/app-BEZmPb6x.css" - ], - "modulePreloads": [] -}; - -export { frontendEntryAssets }; From 06b8ea72d7bf31c005283e5a84b03e865811a6e3 Mon Sep 17 00:00:00 2001 From: Bartek Igielski Date: Sun, 30 Aug 2026 18:18:37 +0200 Subject: [PATCH 2/2] chore: keep generated build output out of source --- .gitignore | 5 -- docs/perf/bun-013-src-application-layout.md | 2 +- package.json | 10 +-- scripts/build/build-binary.ts | 2 +- scripts/build/generate-embedded-assets.ts | 75 ++++++------------- scripts/build/generate-kuma-db.ts | 5 +- skills/release-uptime-maku/SKILL.md | 2 +- src/db/schema/current.sql | 4 +- src/server/bun-http-server.ts | 2 +- src/server/database-template.ts | 15 ++++ src/server/database.ts | 6 +- src/server/db-migrations.ts | 2 +- src/server/embedded-assets.ts | 64 ++++++++++++++++ .../server}/frontend-entry-assets.ts | 43 ++++++++++- src/server/generated/embedded-assets.ts | 8 -- src/server/status-page-document.ts | 6 +- src/server/uptime-maku-server.ts | 2 +- .../auth-settings-injection.test.ts | 2 +- .../backend-test/bun-websocket-server.test.ts | 2 +- test/backend-test/composition-root.test.ts | 2 +- .../frontend-entry-assets.test.ts | 2 +- .../backend-test/heartbeat-data-plane.test.ts | 2 +- test/backend-test/maintenance.test.ts | 14 ++-- .../runtime-registry-callsite.test.ts | 2 +- test/backend-test/schema.test.ts | 4 +- test/backend-test/sqlite-core.test.ts | 10 +-- test/backend-test/status-page.test.ts | 16 ++-- test/backend-test/upgrade.test.ts | 2 +- .../user-resources-injection.test.ts | 2 +- 29 files changed, 196 insertions(+), 117 deletions(-) create mode 100644 src/server/database-template.ts create mode 100644 src/server/embedded-assets.ts rename {scripts/build => src/server}/frontend-entry-assets.ts (63%) delete mode 100644 src/server/generated/embedded-assets.ts diff --git a/.gitignore b/.gitignore index e47f79ac7..a5852f58b 100644 --- a/.gitignore +++ b/.gitignore @@ -30,8 +30,3 @@ extra/exe-builder/obj # Build source maps emitted at repo root server.js.map *.js.map - -# Build-generated source/runtime assets -/src/db/kuma.db -/src/server/generated/embedded-assets.bundle.ts -/src/server/generated/frontend-entry-assets.ts diff --git a/docs/perf/bun-013-src-application-layout.md b/docs/perf/bun-013-src-application-layout.md index b3f68a212..6163874c6 100644 --- a/docs/perf/bun-013-src-application-layout.md +++ b/docs/perf/bun-013-src-application-layout.md @@ -27,7 +27,7 @@ Date: 2026-06-29 - `src/db/schema/current.sql` is the canonical SQLite DDL for fresh installs. - `src/db/schema/upgrades/` contains versioned one-time upgrades for upstream Uptime Kuma 2.x databases. -- `src/db/kuma.db` is generated from `current.sql` via `bun run build:kuma-db`. +- `out/kuma.db` is generated from `current.sql` via `bun run build:kuma-db`. ## Validation diff --git a/package.json b/package.json index 87e4fb31e..b7d537196 100644 --- a/package.json +++ b/package.json @@ -14,12 +14,12 @@ "dev": "bun run --parallel dev:frontend dev:server", "dev:frontend": "NODE_ENV=development vite --host --config ./config/vite.config.ts", "dev:frontend:container": "NODE_ENV=development DEVCONTAINER=1 vite --host --config ./config/vite.config.ts", - "dev:server": "NODE_ENV=development bun src/server/server.ts", - "dev:server:watch": "NODE_ENV=development bun --watch src/server/server.ts", + "dev:server": "bun run build:kuma-db && NODE_ENV=development bun src/server/server.ts", + "dev:server:watch": "bun run build:kuma-db && NODE_ENV=development bun --watch src/server/server.ts", "start": "bun src/server/server.ts", - "build": "bun scripts/build/generate-kuma-db.ts && bun scripts/build/build-binary.ts", + "build": "bun scripts/build/build-binary.ts", "build:kuma-db": "bun scripts/build/generate-kuma-db.ts", - "build:frontend": "bun --bun vite build --config ./config/vite.config.ts && bun scripts/build/generate-embedded-assets.ts", + "build:frontend": "bun --bun vite build --config ./config/vite.config.ts", "build:frontend:analyze": "ANALYZE=1 bun run build:frontend", "build:binary": "bun scripts/build/build-binary.ts", "preview": "vite preview --host --config ./config/vite.config.ts", @@ -34,7 +34,7 @@ "tsc": "tsc --project ./tsconfig-backend.json", "audit": "bun audit", "test": "bun run test:backend && bun run test-e2e", - "test-with-build": "bun run build:frontend && bun run test:backend", + "test-with-build": "bun run build:kuma-db && bun run build:frontend && bun run test:backend", "test:backend": "bun run test:backend:unit && bun run test:auth-security && bun run test:maintenance", "test:backend:unit": "bun test ./test/backend-test/analytics-scripts.test.ts ./test/backend-test/badge-renderer.test.ts ./test/backend-test/composition-root.test.ts ./test/backend-test/domain.test.ts ./test/backend-test/frontend-entry-assets.test.ts ./test/backend-test/heartbeat-data-plane.test.ts ./test/backend-test/auth-security-metrics-benchmark.test.ts ./test/backend-test/auth-settings-injection.test.ts ./test/backend-test/sqlite-core.test.ts ./test/backend-test/bun-websocket-server.test.ts ./test/backend-test/db-lifecycle-injection.test.ts ./test/backend-test/cert-hostname-match.test.ts ./test/backend-test/check-translations.test.ts ./test/backend-test/gamedig-map.test.ts ./test/backend-test/globalping.test.ts ./test/backend-test/http-client.test.ts ./test/backend-test/import-boundaries.test.ts ./test/backend-test/maintenance.test.ts ./test/backend-test/monitor-conditions/evaluator.test.ts ./test/backend-test/monitor-conditions/expressions.test.ts ./test/backend-test/monitor-lifecycle.test.ts ./test/backend-test/monitor-numeric-validation.test.ts ./test/backend-test/monitor-provider-timeout.test.ts ./test/backend-test/optional-startup-integrations.test.ts ./test/backend-test/prometheus.test.ts ./test/backend-test/real-browser-monitor-lifecycle.test.ts ./test/backend-test/monitor-response.test.ts ./test/backend-test/monitor-runtime-loading.test.ts ./test/backend-test/oauth-client-credentials.test.ts ./test/backend-test/runtime-registry-callsite.test.ts ./test/backend-test/monitor-scheduler.test.ts ./test/backend-test/monitors/gamedig.test.ts ./test/backend-test/monitors/grpc.test.ts ./test/backend-test/monitors/steam.test.ts ./test/backend-test/monitors/tcp.test.ts ./test/backend-test/monitors/websocket.test.ts ./test/backend-test/native-utils.test.ts ./test/backend-test/notification-provider-loading.test.ts ./test/backend-test/notification-provider-metadata.test.ts ./test/backend-test/notification-providers/notification-provider.test.ts ./test/backend-test/ping-chart.test.ts ./test/backend-test/proxy-validation.test.ts ./test/backend-test/radius.test.ts ./test/backend-test/schema.test.ts ./test/backend-test/startup-memory-harness.test.ts ./test/backend-test/status-page.test.ts ./test/backend-test/system-service.test.ts ./test/backend-test/upgrade.test.ts ./test/backend-test/uptime-calculator.test.ts ./test/backend-test/user-resources-injection.test.ts ./test/backend-test/util.test.ts", "test:backend:all": "bun test ./test/backend-test", diff --git a/scripts/build/build-binary.ts b/scripts/build/build-binary.ts index b6649ab85..07ae08a8b 100644 --- a/scripts/build/build-binary.ts +++ b/scripts/build/build-binary.ts @@ -22,7 +22,7 @@ const target = process.argv.find((arg) => arg.startsWith("--target="))?.slice("- console.log(target ? `Compiling binary (target=${target})...` : "Compiling binary..."); const result = await Bun.build({ - entrypoints: ["src/server/server.ts"], + entrypoints: ["out/embedded-assets-entry.ts"], compile: { outfile, ...(target ? { target } : {}), diff --git a/scripts/build/generate-embedded-assets.ts b/scripts/build/generate-embedded-assets.ts index a2589e484..ba9f4c27c 100644 --- a/scripts/build/generate-embedded-assets.ts +++ b/scripts/build/generate-embedded-assets.ts @@ -1,13 +1,17 @@ #!/usr/bin/env bun import fs from "fs"; import path from "path"; -import { assertFrontendEntryAssets, getFrontendEntryAssets, type ViteManifest } from "./frontend-entry-assets"; +import { + assertFrontendEntryAssets, + getFrontendEntryAssets, + type ViteManifest, +} from "@/server/frontend-entry-assets.js"; const projectRoot = path.resolve(import.meta.dirname, "../.."); const distDir = path.join(projectRoot, "dist"); -const outputDir = path.join(projectRoot, "src/server/generated"); -const outputFile = path.join(outputDir, "embedded-assets.bundle.ts"); -const entryAssetsOutputFile = path.join(outputDir, "frontend-entry-assets.ts"); +const outputDir = path.join(projectRoot, "out"); +const outputFile = path.join(outputDir, "embedded-assets-entry.ts"); +const databaseTemplateFile = path.join(outputDir, "kuma.db"); const viteManifestFile = path.join(distDir, ".vite/manifest.json"); function walkFiles(dir: string, root = dir): string[] { @@ -32,7 +36,7 @@ function toImportId(index: number) { } function toImportPath(relativePath: string) { - return `../../../dist/${relativePath.split("/").join("/")}`; + return `../dist/${relativePath.split("/").join("/")}`; } if (!fs.existsSync(distDir)) { @@ -51,6 +55,11 @@ if (!fs.existsSync(viteManifestFile)) { process.exit(1); } +if (!fs.existsSync(databaseTemplateFile)) { + console.error("out/kuma.db not found. Run `bun run build:kuma-db` first."); + process.exit(1); +} + const manifest = JSON.parse(fs.readFileSync(viteManifestFile, "utf8")) as ViteManifest; const entryAssets = getFrontendEntryAssets(manifest); assertFrontendEntryAssets(entryAssets, webAssets); @@ -70,60 +79,22 @@ fs.mkdirSync(outputDir, { recursive: true }); const source = `// @ts-nocheck // AUTO-GENERATED by scripts/build/generate-embedded-assets.ts — do not edit. +import dbTemplate from "./kuma.db" with { type: "file" }; +import { registerDatabaseTemplate } from "../src/server/database-template"; +import { registerEmbeddedAssets } from "../src/server/embedded-assets"; +import { registerFrontendEntryAssets } from "../src/server/frontend-entry-assets"; ${importLines.join("\n")} const embeddedWebAssets = { ${mapEntries.join("\n")} }; -function hasEmbeddedAsset(webPath) { - return Object.prototype.hasOwnProperty.call(embeddedWebAssets, webPath); -} - -function getEmbeddedAssetRef(webPath) { - return embeddedWebAssets[webPath]; -} - -async function readEmbeddedAsset(webPath) { - const ref = embeddedWebAssets[webPath]; - if (!ref) { - return null; - } - - const file = Bun.file(ref); - if (!(await file.exists())) { - return null; - } - - return file; -} - -async function readEmbeddedAssetText(webPath) { - const file = await readEmbeddedAsset(webPath); - if (!file) { - return null; - } - - return file.text(); -} - -export { - embeddedWebAssets, - hasEmbeddedAsset, - getEmbeddedAssetRef, - readEmbeddedAsset, - readEmbeddedAssetText, -}; -`; - -const entryAssetsSource = `// @ts-nocheck -// AUTO-GENERATED by scripts/build/generate-embedded-assets.ts — do not edit. - -const frontendEntryAssets = ${JSON.stringify(entryAssets, null, 4)}; +registerDatabaseTemplate(dbTemplate); +registerEmbeddedAssets(embeddedWebAssets); +registerFrontendEntryAssets(${JSON.stringify(entryAssets, null, 4)}); -export { frontendEntryAssets }; +await import("../src/server/server.ts"); `; fs.writeFileSync(outputFile, source); -fs.writeFileSync(entryAssetsOutputFile, entryAssetsSource); -console.log(`Generated ${outputFile} and ${entryAssetsOutputFile} with ${webAssets.length} embedded web assets.`); +console.log(`Generated ${outputFile} with ${webAssets.length} embedded web assets.`); diff --git a/scripts/build/generate-kuma-db.ts b/scripts/build/generate-kuma-db.ts index 192a840be..be0d78290 100644 --- a/scripts/build/generate-kuma-db.ts +++ b/scripts/build/generate-kuma-db.ts @@ -7,7 +7,7 @@ import { SCHEMA_VERSION_KEY } from "@/server/db-migrations"; const projectRoot = path.resolve(import.meta.dirname, "../.."); const schemaPath = path.join(projectRoot, "src/db/schema/current.sql"); -const outputPath = path.join(projectRoot, "src/db/kuma.db"); +const outputPath = path.join(projectRoot, "out/kuma.db"); function main() { const sql = fs.readFileSync(schemaPath, "utf8"); @@ -16,6 +16,7 @@ function main() { fs.unlinkSync(outputPath); } + fs.mkdirSync(path.dirname(outputPath), { recursive: true }); const db = new BunDatabase(outputPath, { create: true, strict: true }); try { applySqlFile(db, sql); @@ -25,7 +26,7 @@ function main() { .run(SCHEMA_VERSION_KEY, "1"); if (!result || Number(result.changes) !== 1) { - throw new Error(`Failed to seed ${SCHEMA_VERSION_KEY} into generated kuma.db`); + throw new Error(`Failed to seed ${SCHEMA_VERSION_KEY} into generated out/kuma.db`); } const seeded = db diff --git a/skills/release-uptime-maku/SKILL.md b/skills/release-uptime-maku/SKILL.md index 65f0612b9..f21cdc47c 100644 --- a/skills/release-uptime-maku/SKILL.md +++ b/skills/release-uptime-maku/SKILL.md @@ -34,7 +34,7 @@ Use `.github/workflows/release.yml` as the release implementation. Drive and ver ## 2. Prepare the version 1. Update `package.json` to the exact release version. -2. Run `bun run build` so the embedded frontend records the same version in `src/server/generated/embedded-assets.bundle.ts`. +2. Run `bun run build` so the compiled binary embeds the frontend assets. Build staging is written to the ignored `out/` directory. 3. Inspect the generated diff. Confirm both backend and frontend expose the intended version and that no stale version remains. 4. Do not manually edit generated asset contents. diff --git a/src/db/schema/current.sql b/src/db/schema/current.sql index 4fb9dfa1d..b74b2873c 100644 --- a/src/db/schema/current.sql +++ b/src/db/schema/current.sql @@ -1,5 +1,5 @@ -- Uptime Maku canonical SQLite schema (Knex migration end-state). --- Regenerate src/db/kuma.db via: bun scripts/build/generate-kuma-db.ts +-- Regenerate out/kuma.db via: bun scripts/build/generate-kuma-db.ts PRAGMA foreign_keys = OFF; @@ -53,4 +53,4 @@ CREATE INDEX `monitor_remote_browser_index` on `monitor` (`remote_browser`); CREATE TABLE `status_page` (`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, `slug` varchar(255) NOT NULL, `title` varchar(255) NOT NULL, `description` text, `icon` varchar(255) NOT NULL, `theme` varchar(30) NOT NULL, `published` boolean NOT NULL DEFAULT '1', `search_engine_index` boolean NOT NULL DEFAULT '1', `show_tags` boolean NOT NULL DEFAULT '0', `password` varchar(255), `created_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `modified_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `footer_text` text, `custom_css` text, `show_powered_by` boolean NOT NULL DEFAULT '1', `analytics_id` varchar(255), `show_certificate_expiry` boolean NOT NULL DEFAULT '0', `auto_refresh_interval` integer DEFAULT '300', `analytics_script_url` varchar(255), `analytics_type` varchar(255) DEFAULT null, `show_only_last_heartbeat` boolean NOT NULL DEFAULT '0', `rss_title` varchar(255)); CREATE UNIQUE INDEX `status_page_slug_unique` on `status_page` (`slug`); -PRAGMA foreign_keys = ON; \ No newline at end of file +PRAGMA foreign_keys = ON; diff --git a/src/server/bun-http-server.ts b/src/server/bun-http-server.ts index 812393a58..c1a214ec2 100644 --- a/src/server/bun-http-server.ts +++ b/src/server/bun-http-server.ts @@ -409,7 +409,7 @@ async function pickFile(filePath, request, precompressed) { } async function pickEmbeddedFile(webPath, request, precompressed) { - const { hasEmbeddedAsset, readEmbeddedAsset } = await import("@/server/generated/embedded-assets"); + const { hasEmbeddedAsset, readEmbeddedAsset } = await import("@/server/embedded-assets.js"); if (precompressed && acceptsEncoding(request, "br") && hasEmbeddedAsset(`${webPath}.br`)) { const file = await readEmbeddedAsset(`${webPath}.br`); if (file) { diff --git a/src/server/database-template.ts b/src/server/database-template.ts new file mode 100644 index 000000000..d4374d505 --- /dev/null +++ b/src/server/database-template.ts @@ -0,0 +1,15 @@ +let embeddedDatabaseTemplatePath: string | null = null; + +function registerDatabaseTemplate(templatePath: string) { + embeddedDatabaseTemplatePath = templatePath; +} + +function getEmbeddedDatabaseTemplatePath() { + if (!embeddedDatabaseTemplatePath) { + throw new Error("Compiled database template was not registered."); + } + + return embeddedDatabaseTemplatePath; +} + +export { getEmbeddedDatabaseTemplatePath, registerDatabaseTemplate }; diff --git a/src/server/database.ts b/src/server/database.ts index 1514e9586..3c7a02c8a 100644 --- a/src/server/database.ts +++ b/src/server/database.ts @@ -11,15 +11,15 @@ import { log } from "@/server/logger"; import { isDev } from "@/server/runtime-flags"; import { runCommandSync } from "@/server/process-helper"; import path from "path"; -import kumaDbTemplate from "@/db/kuma.db" with { type: "file" }; import { defaultDataDir, isCompiledBinary } from "@/server/app-paths"; +import { getEmbeddedDatabaseTemplatePath } from "@/server/database-template.js"; class Database { /** * Bootstrap database for SQLite * @type {string} */ - static templatePath = "./src/db/kuma.db"; + static templatePath = "./out/kuma.db"; /** * Data Dir (Default: ./data) @@ -59,7 +59,7 @@ class Database { * @returns {void} */ static getTemplatePath() { - return isCompiledBinary() ? kumaDbTemplate : Database.templatePath; + return isCompiledBinary() ? getEmbeddedDatabaseTemplatePath() : Database.templatePath; } static initDataDir(args) { diff --git a/src/server/db-migrations.ts b/src/server/db-migrations.ts index ee8415467..f6339035e 100644 --- a/src/server/db-migrations.ts +++ b/src/server/db-migrations.ts @@ -44,7 +44,7 @@ export interface SQLiteStore { * - DML (GameDig rewrites, LINE Notify deletes, etc.) rolls back with the data transaction. * - SCHEMA_VERSION_KEY is only bumped after the data phase succeeds. * - On failure: restart to retry; schema steps are idempotent, data migrations re-run. - * - For severely broken DBs: restore from backup or replace with a fresh src/db/kuma.db. + * - For severely broken DBs: restore from backup or replace with a fresh out/kuma.db. */ interface SchemaUpgrade { diff --git a/src/server/embedded-assets.ts b/src/server/embedded-assets.ts new file mode 100644 index 000000000..6f760dd3d --- /dev/null +++ b/src/server/embedded-assets.ts @@ -0,0 +1,64 @@ +import fs from "node:fs"; +import path from "node:path"; + +type EmbeddedAssetMap = Record; + +const embeddedWebAssets: EmbeddedAssetMap = {}; +let hasRegisteredAssets = false; + +function sourceAssetPath(webPath: string) { + return path.resolve("dist", webPath); +} + +function registerEmbeddedAssets(assets: EmbeddedAssetMap) { + for (const key of Object.keys(embeddedWebAssets)) { + delete embeddedWebAssets[key]; + } + Object.assign(embeddedWebAssets, assets); + hasRegisteredAssets = true; +} + +function hasEmbeddedAsset(webPath: string) { + if (hasRegisteredAssets) { + return Object.prototype.hasOwnProperty.call(embeddedWebAssets, webPath); + } + + return fs.existsSync(sourceAssetPath(webPath)); +} + +function getEmbeddedAssetRef(webPath: string) { + if (hasRegisteredAssets) { + return embeddedWebAssets[webPath]; + } + + const filePath = sourceAssetPath(webPath); + return fs.existsSync(filePath) ? filePath : undefined; +} + +async function readEmbeddedAsset(webPath: string) { + const ref = getEmbeddedAssetRef(webPath); + if (!ref) { + return null; + } + + const file = Bun.file(ref); + if (!(await file.exists())) { + return null; + } + + return file; +} + +async function readEmbeddedAssetText(webPath: string) { + const file = await readEmbeddedAsset(webPath); + return file ? file.text() : null; +} + +export { + embeddedWebAssets, + getEmbeddedAssetRef, + hasEmbeddedAsset, + readEmbeddedAsset, + readEmbeddedAssetText, + registerEmbeddedAssets, +}; diff --git a/scripts/build/frontend-entry-assets.ts b/src/server/frontend-entry-assets.ts similarity index 63% rename from scripts/build/frontend-entry-assets.ts rename to src/server/frontend-entry-assets.ts index ceb24c73f..bffa9cdd9 100644 --- a/scripts/build/frontend-entry-assets.ts +++ b/src/server/frontend-entry-assets.ts @@ -1,3 +1,6 @@ +import fs from "node:fs"; +import path from "node:path"; + export type ViteManifestEntry = { css?: string[]; file: string; @@ -15,7 +18,15 @@ export type FrontendEntryAssets = { styles: string[]; }; -function getFrontendEntryAssets(manifest: ViteManifest): FrontendEntryAssets { +const EMPTY_FRONTEND_ENTRY_ASSETS: FrontendEntryAssets = { + mainScript: "", + modulePreloads: [], + styles: [], +}; + +let registeredFrontendEntryAssets: FrontendEntryAssets | null = null; + +function collectFrontendEntryAssets(manifest: ViteManifest): FrontendEntryAssets { const entries = Object.entries(manifest); const appEntry = entries.find(([, entry]) => entry.isEntry && entry.name === "app") ?? @@ -61,6 +72,30 @@ function getFrontendEntryAssets(manifest: ViteManifest): FrontendEntryAssets { }; } +function getFrontendEntryAssets(manifest?: ViteManifest): FrontendEntryAssets { + if (manifest) { + return collectFrontendEntryAssets(manifest); + } + + if (registeredFrontendEntryAssets) { + return registeredFrontendEntryAssets; + } + + const manifestPath = path.resolve("dist/.vite/manifest.json"); + if (!fs.existsSync(manifestPath)) { + return EMPTY_FRONTEND_ENTRY_ASSETS; + } + + registeredFrontendEntryAssets = collectFrontendEntryAssets( + JSON.parse(fs.readFileSync(manifestPath, "utf8")) as ViteManifest + ); + return registeredFrontendEntryAssets; +} + +function registerFrontendEntryAssets(assets: FrontendEntryAssets) { + registeredFrontendEntryAssets = assets; +} + function assertFrontendEntryAssets(entryAssets: FrontendEntryAssets, webAssets: Iterable) { const embeddedAssets = new Set(webAssets); for (const asset of [entryAssets.mainScript, ...entryAssets.styles, ...entryAssets.modulePreloads]) { @@ -70,4 +105,8 @@ function assertFrontendEntryAssets(entryAssets: FrontendEntryAssets, webAssets: } } -export { assertFrontendEntryAssets, getFrontendEntryAssets }; +export { + assertFrontendEntryAssets, + getFrontendEntryAssets, + registerFrontendEntryAssets, +}; diff --git a/src/server/generated/embedded-assets.ts b/src/server/generated/embedded-assets.ts deleted file mode 100644 index e90dfed35..000000000 --- a/src/server/generated/embedded-assets.ts +++ /dev/null @@ -1,8 +0,0 @@ -// @ts-nocheck -export { - embeddedWebAssets, - hasEmbeddedAsset, - getEmbeddedAssetRef, - readEmbeddedAsset, - readEmbeddedAssetText, -} from "@/server/generated/embedded-assets.bundle"; diff --git a/src/server/status-page-document.ts b/src/server/status-page-document.ts index 2a620b1c2..b8aa289c7 100644 --- a/src/server/status-page-document.ts +++ b/src/server/status-page-document.ts @@ -1,5 +1,5 @@ import analytics from "@/server/analytics/analytics.js"; -import { frontendEntryAssets } from "@/server/generated/frontend-entry-assets.js"; +import { getFrontendEntryAssets } from "@/server/frontend-entry-assets.js"; import { escapeHtml, escapeJsJson } from "@/util/escape.js"; type StatusPageMetadata = { @@ -215,7 +215,7 @@ function renderAppShell(assets: FrontendEntryAssets) { function renderHead({ statusPage, description, preloadData }: StatusPageDocumentInput & { description: string }) { const analyticsScripts = renderAnalytics(statusPage); - const appShell = renderAppShell(frontendEntryAssets); + const appShell = renderAppShell(getFrontendEntryAssets()); const manifestPath = `/api/status-page/${encodeURIComponent(statusPage.slug)}/manifest.json`; return ` @@ -247,7 +247,7 @@ function renderHead({ statusPage, description, preloadData }: StatusPageDocument async function renderStatusPageDocument({ statusPage, preloadData }: StatusPageDocumentInput) { const description = markdownToPlainText(statusPage.description); const head = renderHead({ statusPage, preloadData, description }); - const { body } = renderAppShell(frontendEntryAssets); + const { body } = renderAppShell(getFrontendEntryAssets()); return ` diff --git a/src/server/uptime-maku-server.ts b/src/server/uptime-maku-server.ts index 4d5ab3467..f2323a43f 100644 --- a/src/server/uptime-maku-server.ts +++ b/src/server/uptime-maku-server.ts @@ -75,7 +75,7 @@ class UptimeMakuServer { async loadFrontendAssets() { try { if (isCompiledBinary()) { - const { getEmbeddedAssetRef } = await import("@/server/generated/embedded-assets"); + const { getEmbeddedAssetRef } = await import("@/server/embedded-assets.js"); const embeddedIndex = getEmbeddedAssetRef("index.html"); if (!embeddedIndex) { throw new Error("Embedded index.html is missing from the compiled binary."); diff --git a/test/backend-test/auth-settings-injection.test.ts b/test/backend-test/auth-settings-injection.test.ts index e6e3ada61..ac6cce0bd 100644 --- a/test/backend-test/auth-settings-injection.test.ts +++ b/test/backend-test/auth-settings-injection.test.ts @@ -20,7 +20,7 @@ async function createStore() { const store = new BunSQLiteRedbean(); await store.connect({ sqlitePath: path.join(directory, "kuma.db"), - templatePath: path.join(process.cwd(), "src/db/kuma.db"), + templatePath: path.join(process.cwd(), "out/kuma.db"), testMode: true, }); return store; diff --git a/test/backend-test/bun-websocket-server.test.ts b/test/backend-test/bun-websocket-server.test.ts index 6bcf9039b..7790144d6 100644 --- a/test/backend-test/bun-websocket-server.test.ts +++ b/test/backend-test/bun-websocket-server.test.ts @@ -65,7 +65,7 @@ describe("Bun WebSocket client source", () => { const settings = new Settings(store); await store.connect({ sqlitePath: path.join(directory, "kuma.db"), - templatePath: path.join(process.cwd(), "src/db/kuma.db"), + templatePath: path.join(process.cwd(), "out/kuma.db"), testMode: true, }); diff --git a/test/backend-test/composition-root.test.ts b/test/backend-test/composition-root.test.ts index 8fad9c3c5..629b074b7 100644 --- a/test/backend-test/composition-root.test.ts +++ b/test/backend-test/composition-root.test.ts @@ -21,7 +21,7 @@ async function createRuntime(name, timezone, trustProxy) { const store = new BunSQLiteRedbean(); await store.connect({ sqlitePath: path.join(directory, "kuma.db"), - templatePath: path.join(process.cwd(), "src/db/kuma.db"), + templatePath: path.join(process.cwd(), "out/kuma.db"), testMode: true, }); const settings = new Settings(store); diff --git a/test/backend-test/frontend-entry-assets.test.ts b/test/backend-test/frontend-entry-assets.test.ts index 858bfb377..ba06f110c 100644 --- a/test/backend-test/frontend-entry-assets.test.ts +++ b/test/backend-test/frontend-entry-assets.test.ts @@ -3,7 +3,7 @@ import { assertFrontendEntryAssets, getFrontendEntryAssets, type ViteManifest, -} from "../../scripts/build/frontend-entry-assets.js"; +} from "@/server/frontend-entry-assets.js"; const manifest: ViteManifest = { "entry.html": { diff --git a/test/backend-test/heartbeat-data-plane.test.ts b/test/backend-test/heartbeat-data-plane.test.ts index 315541013..f99aee92c 100644 --- a/test/backend-test/heartbeat-data-plane.test.ts +++ b/test/backend-test/heartbeat-data-plane.test.ts @@ -44,7 +44,7 @@ async function createRuntime(name, now = dayjs.utc("2026-08-07T12:00:00Z")) { const store = new BunSQLiteRedbean(); await store.connect({ sqlitePath: path.join(directory, "kuma.db"), - templatePath: path.join(process.cwd(), "src/db/kuma.db"), + templatePath: path.join(process.cwd(), "out/kuma.db"), testMode: true, }); await store.exec("INSERT INTO user (id, username, active) VALUES (1, ?, 1)", [`${name}-owner`]); diff --git a/test/backend-test/maintenance.test.ts b/test/backend-test/maintenance.test.ts index 780370852..e233e75e5 100644 --- a/test/backend-test/maintenance.test.ts +++ b/test/backend-test/maintenance.test.ts @@ -140,7 +140,7 @@ describe("maintenance validation and timer lifecycle", () => { try { await runtimeStore.connect({ sqlitePath: path.join(directory, "kuma.db"), - templatePath: path.join(process.cwd(), "src/db/kuma.db"), + templatePath: path.join(process.cwd(), "out/kuma.db"), testMode: true, }); await runtimeStore.exec( @@ -516,7 +516,7 @@ describe("maintenance validation and timer lifecycle", () => { try { await runtimeStore.connect({ sqlitePath, - templatePath: path.join(process.cwd(), "src/db/kuma.db"), + templatePath: path.join(process.cwd(), "out/kuma.db"), testMode: true, }); await runtimeStore.exec("INSERT INTO user (id, username, password, active) VALUES (?, ?, ?, ?)", [ @@ -651,7 +651,7 @@ describe("maintenance validation and timer lifecycle", () => { const originalBeginForTest = runtimeStore.begin; await store.connect({ sqlitePath: path.join(directory, "kuma.db"), - templatePath: path.join(process.cwd(), "src/db/kuma.db"), + templatePath: path.join(process.cwd(), "out/kuma.db"), testMode: true, }); runtimeStore.begin = async () => { @@ -697,7 +697,7 @@ describe("maintenance validation and timer lifecycle", () => { const originalBeginForTest = runtimeStore.begin; await store.connect({ sqlitePath: path.join(directory, "kuma.db"), - templatePath: path.join(process.cwd(), "src/db/kuma.db"), + templatePath: path.join(process.cwd(), "out/kuma.db"), testMode: true, }); await store.exec("INSERT INTO user (id, username, password, active) VALUES (1, 'owner', 'hash', 1)"); @@ -755,7 +755,7 @@ describe("maintenance validation and timer lifecycle", () => { const originalBeginForTest = runtimeStore.begin; await store.connect({ sqlitePath: path.join(directory, "kuma.db"), - templatePath: path.join(process.cwd(), "src/db/kuma.db"), + templatePath: path.join(process.cwd(), "out/kuma.db"), testMode: true, }); const bean = Object.assign(new Maintenance(), { @@ -856,12 +856,12 @@ describe("maintenance validation and timer lifecycle", () => { await Promise.all([ first.connect({ sqlitePath: path.join(directory, "first.db"), - templatePath: path.join(process.cwd(), "src/db/kuma.db"), + templatePath: path.join(process.cwd(), "out/kuma.db"), testMode: true, }), second.connect({ sqlitePath: path.join(directory, "second.db"), - templatePath: path.join(process.cwd(), "src/db/kuma.db"), + templatePath: path.join(process.cwd(), "out/kuma.db"), testMode: true, }), ]); diff --git a/test/backend-test/runtime-registry-callsite.test.ts b/test/backend-test/runtime-registry-callsite.test.ts index 61ede724e..7b91b6e0a 100644 --- a/test/backend-test/runtime-registry-callsite.test.ts +++ b/test/backend-test/runtime-registry-callsite.test.ts @@ -33,7 +33,7 @@ async function createRuntime(name, type = "owned") { const store = new BunSQLiteRedbean(); await store.connect({ sqlitePath: path.join(directory, "kuma.db"), - templatePath: path.join(process.cwd(), "src/db/kuma.db"), + templatePath: path.join(process.cwd(), "out/kuma.db"), testMode: true, }); await store.exec("INSERT INTO user (id, username, active) VALUES (1, ?, 1)", [`${name}-owner`]); diff --git a/test/backend-test/schema.test.ts b/test/backend-test/schema.test.ts index a9070e3d6..539fe0d8e 100644 --- a/test/backend-test/schema.test.ts +++ b/test/backend-test/schema.test.ts @@ -13,7 +13,7 @@ import { applySqlFile } from "@/db/schema/sql-utils"; import { SCHEMA_VERSION_KEY } from "@/server/db-migrations"; const projectRoot = path.join(import.meta.dirname, "../.."); -const kumaDbPath = path.join(projectRoot, "src/db/kuma.db"); +const kumaDbPath = path.join(projectRoot, "out/kuma.db"); const currentSqlPath = path.join(projectRoot, "src/db/schema/current.sql"); function getTables(db) { @@ -75,4 +75,4 @@ describe("Database schema contract", () => { db.close(); } }); -}); \ No newline at end of file +}); diff --git a/test/backend-test/sqlite-core.test.ts b/test/backend-test/sqlite-core.test.ts index 44b3f9d9d..89d64cc20 100644 --- a/test/backend-test/sqlite-core.test.ts +++ b/test/backend-test/sqlite-core.test.ts @@ -48,7 +48,7 @@ describe("Bun SQLite Redbean compatibility store", () => { store = new BunSQLiteRedbean(); await store.connect({ sqlitePath: path.join(dir, "kuma.db"), - templatePath: path.join(process.cwd(), "src/db/kuma.db"), + templatePath: path.join(process.cwd(), "out/kuma.db"), testMode: true, }); }); @@ -360,7 +360,7 @@ describe("Bun SQLite Redbean compatibility store", () => { store = createFaultingStore(faults); await store.connect({ sqlitePath: path.join(dir, "kuma.db"), - templatePath: path.join(process.cwd(), "src/db/kuma.db"), + templatePath: path.join(process.cwd(), "out/kuma.db"), testMode: true, }); await store.exec("CREATE TABLE poison_probe (value TEXT NOT NULL)"); @@ -391,7 +391,7 @@ describe("Bun SQLite Redbean compatibility store", () => { await expect( store.connect({ sqlitePath: path.join(dir, "kuma.db"), - templatePath: path.join(process.cwd(), "src/db/kuma.db"), + templatePath: path.join(process.cwd(), "out/kuma.db"), testMode: true, }) ).rejects.toThrow("quarantined"); @@ -411,7 +411,7 @@ describe("Bun SQLite Redbean compatibility store", () => { store = createFaultingStore(faults); await store.connect({ sqlitePath: path.join(dir, "kuma.db"), - templatePath: path.join(process.cwd(), "src/db/kuma.db"), + templatePath: path.join(process.cwd(), "out/kuma.db"), testMode: true, }); await store.exec("CREATE TABLE rollback_poison_probe (value TEXT NOT NULL)"); @@ -451,7 +451,7 @@ describe("Bun SQLite Redbean compatibility store", () => { store = createFaultingStore(faults); await store.connect({ sqlitePath: path.join(dir, "kuma.db"), - templatePath: path.join(process.cwd(), "src/db/kuma.db"), + templatePath: path.join(process.cwd(), "out/kuma.db"), testMode: true, }); const transaction = await store.begin(); diff --git a/test/backend-test/status-page.test.ts b/test/backend-test/status-page.test.ts index 7710422a2..4adc0a142 100644 --- a/test/backend-test/status-page.test.ts +++ b/test/backend-test/status-page.test.ts @@ -16,14 +16,16 @@ import { STATUS_PAGE_PARTIAL_DOWN, STATUS_PAGE_MAINTENANCE, } from "@/constants"; -import { frontendEntryAssets } from "@/server/generated/frontend-entry-assets"; -import { hasEmbeddedAsset } from "@/server/generated/embedded-assets"; +import { hasEmbeddedAsset } from "@/server/embedded-assets.js"; +import { getFrontendEntryAssets } from "@/server/frontend-entry-assets.js"; import { markdownToPlainText, renderStatusPageDocument } from "@/server/status-page-document"; import { handleStatusPageRequest } from "@/server/routers/status-page-router"; import "@/server/model-registry"; dayjs.extend(utc); +const frontendEntryAssets = getFrontendEntryAssets(); + describe("StatusPage", () => { describe("status page document", () => { test("renders an owned document with escaped metadata, preload data, and Vite assets", async () => { @@ -215,12 +217,12 @@ describe("StatusPage", () => { await Promise.all([ first.connect({ sqlitePath: path.join(dir, "first.db"), - templatePath: path.join(process.cwd(), "src/db/kuma.db"), + templatePath: path.join(process.cwd(), "out/kuma.db"), testMode: true, }), second.connect({ sqlitePath: path.join(dir, "second.db"), - templatePath: path.join(process.cwd(), "src/db/kuma.db"), + templatePath: path.join(process.cwd(), "out/kuma.db"), testMode: true, }), ]); @@ -257,7 +259,7 @@ describe("StatusPage", () => { const store = new BunSQLiteRedbean(); await store.connect({ sqlitePath: path.join(dir, "kuma.db"), - templatePath: path.join(process.cwd(), "src/db/kuma.db"), + templatePath: path.join(process.cwd(), "out/kuma.db"), testMode: true, }); await store.exec( @@ -300,7 +302,7 @@ describe("StatusPage", () => { try { await store.connect({ sqlitePath: path.join(directory, "kuma.db"), - templatePath: path.join(process.cwd(), "src/db/kuma.db"), + templatePath: path.join(process.cwd(), "out/kuma.db"), testMode: true, }); await store.exec( @@ -409,7 +411,7 @@ describe("StatusPage", () => { try { await store.connect({ sqlitePath: path.join(directory, "kuma.db"), - templatePath: path.join(process.cwd(), "src/db/kuma.db"), + templatePath: path.join(process.cwd(), "out/kuma.db"), testMode: true, }); await store.exec( diff --git a/test/backend-test/upgrade.test.ts b/test/backend-test/upgrade.test.ts index da9a7ecb8..50ea221d1 100644 --- a/test/backend-test/upgrade.test.ts +++ b/test/backend-test/upgrade.test.ts @@ -12,7 +12,7 @@ import { SCHEMA_VERSION_KEY, getSchemaVersion } from "@/server/db-migrations"; const projectRoot = path.join(import.meta.dirname, "../.."); const baselineFixturePath = path.join(import.meta.dirname, "fixtures/upstream-kuma-baseline.sql"); const knexEndstateFixturePath = path.join(import.meta.dirname, "fixtures/upstream-kuma-knex-endstate.sql"); -const templatePath = path.join(projectRoot, "src/db/kuma.db"); +const templatePath = path.join(projectRoot, "out/kuma.db"); const smtpConfig = '{"type":"smtp","smtpHost":"mail.example.invalid","smtpPort":2525,"smtpSecure":false,"smtpFrom":"sender@example.invalid","smtpTo":"recipient@example.invalid"}'; diff --git a/test/backend-test/user-resources-injection.test.ts b/test/backend-test/user-resources-injection.test.ts index 15f390ee4..0774fad09 100644 --- a/test/backend-test/user-resources-injection.test.ts +++ b/test/backend-test/user-resources-injection.test.ts @@ -26,7 +26,7 @@ async function createStore() { const store = new BunSQLiteRedbean(); await store.connect({ sqlitePath: path.join(directory, "kuma.db"), - templatePath: path.join(process.cwd(), "src/db/kuma.db"), + templatePath: path.join(process.cwd(), "out/kuma.db"), testMode: true, }); await store.exec("INSERT INTO user (id, username, password, active) VALUES (?, ?, ?, ?)", [1, "owner", "x", 1]);