diff --git a/apps/website/nuxt.config.ts b/apps/website/nuxt.config.ts index 6ec824c..7d9f037 100644 --- a/apps/website/nuxt.config.ts +++ b/apps/website/nuxt.config.ts @@ -16,6 +16,12 @@ export default defineNuxtConfig({ ], }, }, + routeRules: { + '/addon': { + ssr: false, + static: true, + }, + }, devtools: { enabled: true }, devServer: { host: '0.0.0.0', diff --git a/apps/website/server/plugins/start.ts b/apps/website/server/plugins/start.ts index e475a32..6ee5cf0 100644 --- a/apps/website/server/plugins/start.ts +++ b/apps/website/server/plugins/start.ts @@ -1,4 +1,5 @@ export default defineNitroPlugin(() => { + const logger = useLogger('plugin-start') const { twitchChannelId } = useRuntimeConfig() if (!twitchChannelId) { @@ -12,6 +13,8 @@ export default defineNitroPlugin(() => { void twitchWoodlandController.serve() setTimeout(checkIfStreamingNow, 5000) + + logger.info('Twitch server started') }) async function checkIfStreamingNow() { diff --git a/apps/website/server/utils/twitch/twitch.addon.controller.ts b/apps/website/server/utils/twitch/twitch.addon.controller.ts index 672c86a..fa5beb8 100644 --- a/apps/website/server/utils/twitch/twitch.addon.controller.ts +++ b/apps/website/server/utils/twitch/twitch.addon.controller.ts @@ -48,6 +48,8 @@ class TwitchAddonController { return } + this.#logger.info('Starting characters updater...') + this.#activeCharactersUpdater = setInterval(async () => { for (const c of this.#activeCharacters) { const checkTime = getDateMinusMinutes(4)