aboutsummaryrefslogtreecommitdiff
path: root/next.config.ts
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 /next.config.ts
parent2756d9a8db2a49db36dc87d31d85283bb7a992f9 (diff)
downloadbenzin-next-ca81ea6433af1c5231ea52b4692812e2f39aeb09.tar.gz
feat: redirect / to index
Diffstat (limited to 'next.config.ts')
-rw-r--r--next.config.ts19
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;