aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2022-09-23 19:46:49 +0300
committereug-vs <eugene@eug-vs.xyz>2022-09-23 19:46:49 +0300
commitca81ea6433af1c5231ea52b4692812e2f39aeb09 (patch)
treec6954f92d8f817ecc6fbb6b3ad0bf0f8093fb5c0
parent2756d9a8db2a49db36dc87d31d85283bb7a992f9 (diff)
downloadbenzin-next-ca81ea6433af1c5231ea52b4692812e2f39aeb09.tar.gz
feat: redirect / to index
-rw-r--r--next.config.js11
-rw-r--r--next.config.ts19
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;