Skip to content

Commit

Permalink
fixed auto reload on replit
Browse files Browse the repository at this point in the history
  • Loading branch information
aliirz committed Aug 6, 2024
1 parent cba4c9e commit 67db078
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export default defineNuxtConfig({
modules: ["@nuxtjs/tailwindcss", "@nuxtjs/color-mode", "shadcn-nuxt"],
colorMode: {
classSuffix: ''
classSuffix: "",
},
shadcn: {
/**
Expand All @@ -14,4 +14,12 @@ export default defineNuxtConfig({
*/
componentDir: "./components/ui",
},
// workaround for Nuxt bug, see https://github.com/nuxt/nuxt/issues/27558#issuecomment-2166231479
hooks: {
"vite:extendConfig": (config) => {
if (typeof config.server!.hmr === "object") {
config.server!.hmr.protocol = "wss";
}
},
},
});

0 comments on commit 67db078

Please sign in to comment.