From 292e54a877f50e9a3af20227b42483adc41ac559 Mon Sep 17 00:00:00 2001 From: Nathan Drake Date: Tue, 7 Nov 2023 20:49:45 -0600 Subject: [PATCH] fix: GBREWagvejiwfewa --- next.config.js | 30 +++++++++++++++--------------- package.json | 2 +- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/next.config.js b/next.config.js index 2816a34..bb32bb3 100644 --- a/next.config.js +++ b/next.config.js @@ -1,6 +1,6 @@ /** @type {import('next').NextConfig} */ const nextConfig = { - output: "export", + output: "standalone", reactStrictMode: true, swcMinify: true, compiler: { @@ -38,20 +38,20 @@ const nextConfig = { }, ], }, - // async redirects() { - // return [ - // { - // source: "/project", - // destination: "/", - // permanent: true, - // }, - // { - // source: "/project/:slug/token", - // destination: "/project/:slug", - // permanent: true, - // }, - // ]; - // }, + async redirects() { + return [ + { + source: "/project", + destination: "/", + permanent: true, + }, + { + source: "/project/:slug/token", + destination: "/project/:slug", + permanent: true, + }, + ]; + }, }; export default nextConfig; diff --git a/package.json b/package.json index 1c15f21..364ea67 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "private": true, "type": "module", "scripts": { - "build": "next build && next export", + "build": "next build && rm -rf ./.next/cache", "predev": "yarn wagmi generate", "dev": "next dev", "devstart": "next dev",