From 305316422671ce81bcfc3e4e9808405a706206cc Mon Sep 17 00:00:00 2001 From: Makisuo <31933546+Makisuo@users.noreply.github.com> Date: Sun, 15 Dec 2024 00:31:51 +0100 Subject: [PATCH] reveter --- next.config.ts => next.config.mjs | 5 ++--- tsconfig.json | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) rename next.config.ts => next.config.mjs (97%) 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",