From 30434e9bad2bf3b082b8dec193b1f2ccfa905f85 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Fri, 23 Sep 2022 19:49:41 +0300 Subject: fix: use .js in next config --- next.config.js | 18 ++++++++++++++++++ next.config.ts | 19 ------------------- 2 files changed, 18 insertions(+), 19 deletions(-) create mode 100644 next.config.js delete mode 100644 next.config.ts diff --git a/next.config.js b/next.config.js new file mode 100644 index 0000000..cc28907 --- /dev/null +++ b/next.config.js @@ -0,0 +1,18 @@ +/** @type {import('next').NextConfig} */ +const nextConfig = { + reactStrictMode: true, + experimental: { + images: { + allowFutureImage: true, + }, + }, + redirects: async () => { + return [{ + source: '/', + destination: '/index', + permanent: true, + }]; + } +} + +module.exports = nextConfig diff --git a/next.config.ts b/next.config.ts deleted file mode 100644 index 742ad4f..0000000 --- a/next.config.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { NextConfig } from 'next'; - -const nextConfig: NextConfig = { - reactStrictMode: true, - experimental: { - images: { - allowFutureImage: true, - }, - }, - redirects: async () => { - return [{ - source: '/', - destination: '/index', - permanent: true, - }]; - } -} - -export default nextConfig; -- cgit v1.2.3