diff options
Diffstat (limited to 'storefront')
| -rw-r--r-- | storefront/Dockerfile | 2 | ||||
| -rw-r--r-- | storefront/next.config.js | 1 | ||||
| -rw-r--r-- | storefront/public/.gitkeep | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/storefront/Dockerfile b/storefront/Dockerfile index b6c1da8..b3f5cb8 100644 --- a/storefront/Dockerfile +++ b/storefront/Dockerfile @@ -2,7 +2,7 @@ FROM node:18-alpine AS deps
WORKDIR /app
COPY package.json yarn.lock* package-lock.json* ./
-RUN npm ci
+RUN if [ -f package-lock.json ]; then npm ci; else npm install; fi
# Rebuild the source code only when needed
FROM node:18-alpine AS builder
diff --git a/storefront/next.config.js b/storefront/next.config.js index 255e46c..304baa3 100644 --- a/storefront/next.config.js +++ b/storefront/next.config.js @@ -1,6 +1,7 @@ /** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
+ output: "standalone",
images: {
domains: ["localhost", "medusa-public-images.s3.eu-west-1.amazonaws.com"],
},
diff --git a/storefront/public/.gitkeep b/storefront/public/.gitkeep new file mode 100644 index 0000000..8d1c8b6 --- /dev/null +++ b/storefront/public/.gitkeep @@ -0,0 +1 @@ + |
