From eeb3bcec19b15e6b7d30f983c8f613dedb1a9b32 Mon Sep 17 00:00:00 2001
From: eug-vs <eugene@eug-vs.xyz>
Date: Sat, 22 Oct 2022 20:06:01 +0300
Subject: refactor: separate Nginx adapter

---
 src/Emoji.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/Emoji.tsx')

diff --git a/src/Emoji.tsx b/src/Emoji.tsx
index b928087..df5108d 100644
--- a/src/Emoji.tsx
+++ b/src/Emoji.tsx
@@ -1,5 +1,6 @@
 import { FC } from 'react';
 import Image from 'next/future/image';
+import benzinConfig from './benzinConfig';
 
 interface Props {
   children: string[];
@@ -9,7 +10,7 @@ const Emoji: FC<Props> = ({ children }) => {
   const src = children[0];
   return (
     <Image
-      src={`/emoji/${src}`}
+      src={`${benzinConfig.CDN}/public/emoji/${src}`}
       width={16}
       alt={`${src}-emoji`}
     />
-- 
cgit v1.2.3

