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 /next.config.ts | |
parent | 2756d9a8db2a49db36dc87d31d85283bb7a992f9 (diff) | |
download | benzin-next-ca81ea6433af1c5231ea52b4692812e2f39aeb09.tar.gz |
feat: redirect / to index
Diffstat (limited to 'next.config.ts')
-rw-r--r-- | next.config.ts | 19 |
1 files changed, 19 insertions, 0 deletions
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; |