diff --git a/Dockerfile b/Dockerfile index ba2ad4b..8cdbd17 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,6 +23,7 @@ ARG NEXT_PUBLIC_COLOR_TERTIARTY ARG NEXT_PUBLIC_FAVICON ARG NEXT_TELEMETRY_DISABLED ARG NEXT_PUBLIC_URL_CRM_GRAPHQL_DIRECT +ARG NEXT_PUBLIC_URL_GET_USER # Next.js collects completely anonymous telemetry data about general usage. # Learn more here: https://nextjs.org/telemetry @@ -46,7 +47,7 @@ RUN addgroup --system --gid 1001 nodejs RUN adduser --system --uid 1001 nextjs # You only need to copy next.config.js if you are NOT using the default configuration -# COPY --from=builder /app/next.config.js ./ +COPY --from=builder /app/next.config.js ./ COPY --from=builder /app/public ./public COPY --from=builder /app/package.json ./package.json diff --git a/services/user/index.ts b/services/user/index.ts index 246850c..2ddecc9 100644 --- a/services/user/index.ts +++ b/services/user/index.ts @@ -6,7 +6,7 @@ import type { User } from './types'; export async function fetchUser(config: AxiosRequestConfig) { const user = await axios - .get(process.env.URL_GET_USER || '', config) + .get(process.env.NEXT_PUBLIC_URL_GET_USER || '', config) .then((res) => love(res.data)); return user;