diff --git a/.env.example b/.env.example index 0d5a2cd..2033185 100644 --- a/.env.example +++ b/.env.example @@ -27,4 +27,5 @@ DATABASE_URL="" # Website Variables -NEXT_PUBLIC_SITE_URL="https://entgamers.com" \ No newline at end of file +NEXT_PUBLIC_SITE_URL="https://entgamers.com" +IMAGE_DOMAINS="domain.com,another.domain.com" \ No newline at end of file diff --git a/bun.lockb b/bun.lockb index 66f990f..638bc7f 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/next.config.js b/next.config.js index 9cd069e..78f77f4 100644 --- a/next.config.js +++ b/next.config.js @@ -1,5 +1,10 @@ /** @type {import('next').NextConfig} */ +const imageDomains = (process.env.IMAGE_DOMAINS ?? '').split(',').map(domain => domain.trim()) + module.exports = { - reactStrictMode: true + reactStrictMode: true, + images: { + domains: imageDomains + } } diff --git a/package.json b/package.json index 4aeb040..267515c 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "@fortawesome/react-fontawesome": "^0.2.0", "@reduxjs/toolkit": "^2.0.1", "appwrite": "^13.0.1", - "entgamers-database": "0.0.13", + "entgamers-database": "0.0.14", "entgamers-panda-preset": "0.1.2", "formik": "^2.4.5", "framer-motion": "^10.17.6", diff --git a/tsconfig.json b/tsconfig.json index c6b9b40..1e28cf6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -34,7 +34,8 @@ "next-env.d.ts", "**/*.ts", "**/*.tsx", - ".next/types/**/*.ts" + ".next/types/**/*.ts", + "next.config.js" ], "exclude": [ "node_modules"