diff options
author | eug-vs <eugene@eug-vs.xyz> | 2022-09-23 19:46:49 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2022-09-23 19:46:49 +0300 |
commit | ca81ea6433af1c5231ea52b4692812e2f39aeb09 (patch) | |
tree | c6954f92d8f817ecc6fbb6b3ad0bf0f8093fb5c0 | |
parent | 2756d9a8db2a49db36dc87d31d85283bb7a992f9 (diff) | |
download | benzin-next-ca81ea6433af1c5231ea52b4692812e2f39aeb09.tar.gz |
feat: redirect / to index
-rw-r--r-- | next.config.js | 11 | ||||
-rw-r--r-- | next.config.ts | 19 |
2 files changed, 19 insertions, 11 deletions
diff --git a/next.config.js b/next.config.js deleted file mode 100644 index 63fbc33..0000000 --- a/next.config.js +++ /dev/null @@ -1,11 +0,0 @@ -/** @type {import('next').NextConfig} */ -const nextConfig = { - reactStrictMode: true, - experimental: { - images: { - allowFutureImage: true, - }, - }, -} - -module.exports = nextConfig diff --git a/next.config.ts b/next.config.ts new file mode 100644 index 0000000..742ad4f --- /dev/null +++ b/next.config.ts @@ -0,0 +1,19 @@ +import { NextConfig } from 'next'; + +const nextConfig: NextConfig = { + reactStrictMode: true, + experimental: { + images: { + allowFutureImage: true, + }, + }, + redirects: async () => { + return [{ + source: '/', + destination: '/index', + permanent: true, + }]; + } +} + +export default nextConfig; |