Rhys
Explore posts from serversDIAdiscord.js - Imagine an appRRailwaySIASapphire - Imagine a frameworkTtRPCAOAnswer OverflowTTCTheo's Typesafe CultAIAO IntegrationDTDrizzle Team
SIASapphire - Imagine a framework
•Created by Rhys on 10/4/2024 in #sapphire-support
Bun hot module reloading & starting in production with Sapphire
Hey, was curious what special work would need to be done to get HMR working with Bun
Was looking at https://github.com/sapphiredev/bun-example/blob/main/package.json and that example doesn't include HMR
My understanding of the plugin https://www.npmjs.com/package/@sapphire/plugin-hmr is that it was watching for changes in the outputed files, and since bun just runs the code directly I assume it's incompatible, but figured I'd check
Along with that, for starting the bot in production w/ bun is it as simple as setting the NODE_ENV var to "production"?
Let me know if I'm able to provide any more info or help out with things, source code is https://github.com/AnswerOverflow/AnswerOverflow/tree/v2/apps/discord-bot
7 replies