Fixing image url attempt #3

This commit is contained in:
GunaTrika 2021-09-28 12:50:39 +05:30
parent b628699f3a
commit 2ca44ffc90
2 changed files with 6 additions and 1 deletions

View File

@ -10,6 +10,7 @@ FROM node:alpine AS builder
WORKDIR /app
COPY . .
COPY --from=deps /app/node_modules ./node_modules
COPY --from=deps /app/next.config.js ./next.config.js
RUN yarn build && yarn install --production --ignore-scripts --prefer-offline
# Production image, copy all the files and run next

View File

@ -16,7 +16,11 @@ module.exports = withCommerceConfig({
webpack5: true,
},
images: {
domains: ['s3-eu-west-1.amazonaws.com']
domains: [
'localhost',
'206.189.135.123',
's3-eu-west-1.amazonaws.com'
]
},
commerce,
i18n: {