summaryrefslogtreecommitdiff
path: root/geshem
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2024-09-23 10:14:08 +0200
committerYuval Adam <_@yuv.al>2024-09-23 10:14:08 +0200
commitaf1f0b5d68bca880d491cdc604f2f3ef6354fe77 (patch)
tree830271cd0839f3a8ce4553ca3e13e2b19548e4f5 /geshem
parentaf060f85a7bc13a5bb05e453c411f5807589e6c6 (diff)
Redirect all local calls to images to prod
Diffstat (limited to 'geshem')
-rw-r--r--geshem/next.config.mjs15
1 files changed, 14 insertions, 1 deletions
diff --git a/geshem/next.config.mjs b/geshem/next.config.mjs
index 4678774..9a6f2e0 100644
--- a/geshem/next.config.mjs
+++ b/geshem/next.config.mjs
@@ -1,4 +1,17 @@
/** @type {import('next').NextConfig} */
-const nextConfig = {};
+const nextConfig = {
+ async rewrites() {
+ return [
+ {
+ source: '/imgs.json',
+ destination: 'https://imgs.geshem.space/imgs.json',
+ },
+ {
+ source: '/imgs/:path*',
+ destination: 'https://imgs.geshem.space/imgs/:path*',
+ },
+ ];
+ },
+};
export default nextConfig;