diff options
| author | Factiven <[email protected]> | 2023-12-24 13:03:54 +0700 |
|---|---|---|
| committer | Factiven <[email protected]> | 2023-12-24 13:03:54 +0700 |
| commit | 50a0f0240d7fef133eb5acc1bea2b1168b08e9db (patch) | |
| tree | 307e09e505580415a58d64b5fc3580e9235869f1 /next.config.js | |
| parent | Update README.md (#104) (diff) | |
| download | moopa-50a0f0240d7fef133eb5acc1bea2b1168b08e9db.tar.xz moopa-50a0f0240d7fef133eb5acc1bea2b1168b08e9db.zip | |
migrate to typescript
Diffstat (limited to 'next.config.js')
| -rw-r--r-- | next.config.js | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/next.config.js b/next.config.js index d3fd882..7920ac0 100644 --- a/next.config.js +++ b/next.config.js @@ -9,8 +9,13 @@ const withPWA = require("next-pwa")({ }); module.exports = withPWA({ - reactStrictMode: false, + reactStrictMode: true, + webpack(config, options) { + config.resolve.extensions.push(".ts", ".tsx"); + return config; + }, images: { + unoptimized: true, remotePatterns: [ { protocol: "https", @@ -28,6 +33,10 @@ module.exports = withPWA({ protocol: "https", hostname: "tenor.com", }, + { + protocol: "https", + hostname: "meionovel.id", + }, ], }, // distDir: process.env.BUILD_DIR || ".next", @@ -41,6 +50,24 @@ module.exports = withPWA({ permanent: false, basePath: false, }, + { + source: "/changelogs", + destination: "https://github.com/Ani-Moopa/Moopa/releases", + permanent: false, + basePath: false, + }, + { + source: "/github", + destination: "https://github.com/Ani-Moopa/Moopa", + permanent: false, + basePath: false, + }, + { + source: "/discord", + destination: "https://discord.gg/v5fjSdKwr2", + permanent: false, + basePath: false, + }, ]; }, // async headers() { |