feat: fxi nala issue

This commit is contained in:
Jesse Egbosionu
2024-11-25 09:58:58 +01:00
parent 973d96c805
commit 53ea2721d6
4 changed files with 33 additions and 1 deletions
+8
View File
@@ -0,0 +1,8 @@
Dockerfile
.dockerignore
node_modules
npm-debug.log
README.md
.env*
.next
.git
+23
View File
@@ -0,0 +1,23 @@
FROM node:22-slim AS base
ENV NEXT_TELEMETRY_DISABLED=1
WORKDIR /app
# Dependencies
FROM base AS dependencies
COPY package.json package-lock.json ./
RUN npm ci
# Build
FROM base AS build
COPY --from=dependencies /app/node_modules ./node_modules
COPY . .
RUN npm run build
# Run
FROM base AS run
ENV NODE_ENV=production
RUN mkdir .next
COPY --from=build /app/public ./public
COPY --from=build /app/.next/standalone ./
COPY --from=build /app/.next/static ./.next/static
CMD ["node", "server.js"]
+1
View File
@@ -2,4 +2,5 @@ module.exports = {
images: {
domains: ['res.cloudinary.com'],
},
output: 'standalone',
};
+1 -1
View File
@@ -214,7 +214,7 @@ export default async (req, res) => {
.then((result) => {
const nalaRates = result.data.find(
(data) => {
return data.source_currency == "EUR" && data.destination_currency === "NGN"
return data.source_currency === "EUR" && data.destination_currency === "NGN" && data.provider_name === "nala"
}
)
// console.log("NALA<<<<<<<", nalaRates)