Skip to content

Full Toolkit for Next-Level Domain Analysis

Convert Next.js config to TS πŸ”ŒπŸ“œ

Felix Wotschofskycf0eccf40322
diff --git a/next-env.d.ts b/next-env.d.ts
index 9edff1c..c4b7818 100644
--- a/next-env.d.ts
+++ b/next-env.d.ts
@@ -1,6 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
-import "./.next/types/routes.d.ts";
+import "./.next/dev/types/routes.d.ts";
// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
diff --git a/next.config.js b/next.config.ts
similarity index 91%
rename from next.config.js
rename to next.config.ts
index 364e67c..4b33d3e 100644
--- a/next.config.js
+++ b/next.config.ts
@@ -1,5 +1,6 @@
-/** @type {import('next').NextConfig} */
-const nextConfig = {
+import type { NextConfig } from 'next';
+
+const nextConfig: NextConfig = {
reactStrictMode: false,
turbopack: {
rules: {
@@ -56,4 +57,4 @@ const nextConfig = {
},
};
-module.exports = nextConfig;
+export default nextConfig;