diff --git a/tsconfig.json b/tsconfig.json
index a7fc6fbf23de2a53e36754bc4a2c306d0291d7b2..6d545f543f6708a1ab25c98a4fb9b3b8d3c13020 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -20,6 +20,5 @@
     "noUnusedParameters": true,
     "noFallthroughCasesInSwitch": true
   },
-  "include": ["src"],
-  "references": [{ "path": "./tsconfig.node.json" }]
+  "include": ["src"]
 }
diff --git a/tsconfig.node.json b/tsconfig.node.json
index 97ede7ee6f2d37bd2d76e60c0b6a447bee718b05..8031f9bad7864e3a6c90e81b073f403919e916e2 100644
--- a/tsconfig.node.json
+++ b/tsconfig.node.json
@@ -7,5 +7,5 @@
     "allowSyntheticDefaultImports": true,
     "strict": true
   },
-  "include": ["vite.config.ts"]
+  "include": ["vite.config.ts", "src/utils/index.ts"]
 }
diff --git a/vite.config.ts b/vite.config.ts
index 03a911882380aa9f0a80abca3d61027d5c05ae57..c0b0528318aa29a3738de9413ee05a956cb76953 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -1,15 +1,6 @@
 import { defineConfig, loadEnv } from "vite";
 import react from "@vitejs/plugin-react";
-
-function stringToSlug(string: string): string {
-  let slug = String(string).toLowerCase();
-  slug = slug.replace(/[^a-z0-9-]/g, "-");
-  slug = slug.replace(/-+/g, "-");
-  // remove dashes at start and end
-  const start = slug.search(/[^-]/); // find index of first non-dash
-  const end = slug.search(/-+$/); // find index of first end dash
-  return slug.substring(start, end === -1 ? undefined : end);
-}
+import { stringToSlug } from "./src/utils";
 
 // https://vitejs.dev/config/
 export default () => {