feat: fxi nala issue
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
Dockerfile
|
||||
.dockerignore
|
||||
node_modules
|
||||
npm-debug.log
|
||||
README.md
|
||||
.env*
|
||||
.next
|
||||
.git
|
||||
+23
@@ -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"]
|
||||
@@ -2,4 +2,5 @@ module.exports = {
|
||||
images: {
|
||||
domains: ['res.cloudinary.com'],
|
||||
},
|
||||
output: 'standalone',
|
||||
};
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user