diff --git a/next.config.ts b/next.config.mjs similarity index 97% rename from next.config.ts rename to next.config.mjs index 246824ec..f838bdf4 100644 --- a/next.config.ts +++ b/next.config.mjs @@ -1,5 +1,3 @@ -import type { NextConfig } from "next" - const isDev = process.argv.indexOf("dev") !== -1 const isBuild = process.argv.indexOf("build") !== -1 if (!process.env.VELITE_STARTED && (isDev || isBuild)) { @@ -8,6 +6,7 @@ if (!process.env.VELITE_STARTED && (isDev || isBuild)) { await build({ watch: isDev, clean: !isDev }) } +/** @type {import("next").NextConfig} */ export default { devIndicators: { buildActivity: false, @@ -106,4 +105,4 @@ export default { }, ] }, -} satisfies NextConfig +} diff --git a/tsconfig.json b/tsconfig.json index ece6c98b..d46a3a1a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -28,7 +28,7 @@ "#site/content": ["./.velite"] } }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "next.config.mjs"], "exclude": [ "node_modules",