aboutsummaryrefslogtreecommitdiffstats
path: root/next.config.js
diff options
context:
space:
mode:
authorSebastien Castiel <sebastien@castiel.me>2024-01-28 18:51:29 -0500
committerGitHub <noreply@github.com>2024-01-28 18:51:29 -0500
commitd43e731fe191d7e35d96847fe095c94555dd8ca6 (patch)
treeb8bc3f99770a47ec0343f642ca04e727f7abd716 /next.config.js
parent11d2e298e8cc5cac07aa2c60e194bf4460cefb21 (diff)
Attach documents to expenses (#64)
* Upload documents to receipts * Improve documents * Make the feature opt-in * Fix file name issue
Diffstat (limited to 'next.config.js')
-rw-r--r--next.config.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/next.config.js b/next.config.js
index 767719f..6d6b0c3 100644
--- a/next.config.js
+++ b/next.config.js
@@ -1,4 +1,15 @@
/** @type {import('next').NextConfig} */
-const nextConfig = {}
+const nextConfig = {
+ images: {
+ remotePatterns:
+ process.env.S3_UPLOAD_BUCKET && process.env.S3_UPLOAD_REGION
+ ? [
+ {
+ hostname: `${process.env.S3_UPLOAD_BUCKET}.s3.${process.env.S3_UPLOAD_REGION}.amazonaws.com`,
+ },
+ ]
+ : [],
+ },
+}
module.exports = nextConfig