Skip to content

Commit

Permalink
fix: disable HMR during build (withastro#2684)
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re authored Mar 1, 2022
1 parent d1cd169 commit d2926cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vite-plugin-astro/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ export default function astro({ config, logging }: AstroPluginOptions): vite.Plu
}
},
async handleHotUpdate(context) {
if (context.server.config.isProduction) return;
return handleHotUpdate(context, config, logging);
},
};
Expand Down

0 comments on commit d2926cc

Please sign in to comment.