diff --git a/dockerfile b/dockerfile index e5675da..b28b1c6 100644 --- a/dockerfile +++ b/dockerfile @@ -22,7 +22,7 @@ COPY . . # ENV NEXT_TELEMETRY_DISABLED 1 -RUN yarn build +# RUN yarn build # If using npm comment out above and use below instead # RUN npm run build diff --git a/next.config.js b/next.config.js index aeed392..d3d0106 100644 --- a/next.config.js +++ b/next.config.js @@ -3,7 +3,14 @@ const nextConfig = { reactStrictMode: true, output: 'standalone', images: { - domains: ['13.209.39.139'], + remotePatterns: [ + { + protocol: 'http', + hostname: '13.209.39.139', + port: '31192', + pathname: '/api/**', + }, + ], }, compiler: { styledComponents: true, diff --git a/src/app/dashboard/components/Dashboard.tsx b/src/app/dashboard/components/Dashboard.tsx index 5b0b224..906c102 100644 --- a/src/app/dashboard/components/Dashboard.tsx +++ b/src/app/dashboard/components/Dashboard.tsx @@ -1,3 +1,4 @@ +/* eslint-disable @next/next/no-img-element */ 'use client'; import React from 'react'; @@ -22,27 +23,23 @@ function Dashboard() {
{getResult.data && ( <> -
+

Input Image

-
- + origin image

Inference Result Image

- inference image
diff --git a/src/app/dashboard/types/index.ts b/src/app/dashboard/types/index.ts index 8aaf8d5..cba2756 100644 --- a/src/app/dashboard/types/index.ts +++ b/src/app/dashboard/types/index.ts @@ -2,10 +2,10 @@ import { StaticImageData } from 'next/image'; export interface ResultDataType { origin: { - imageUrl: StaticImageData; + imageUrl: string; }; latest: { - imageUrl: StaticImageData; + imageUrl: string; timestamp: number; particleSizeRatio: { range: string; count: number }[]; };