authorization: fix auth url is undefined

This commit is contained in:
Chika 2022-07-16 19:12:43 +03:00
parent b9d9c9d7bc
commit ed5f096afa
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -6,7 +6,7 @@ import type { User } from './types';
export async function fetchUser(config: AxiosRequestConfig) {
const user = await axios
.get<User>(process.env.URL_GET_USER || '', config)
.get<User>(process.env.NEXT_PUBLIC_URL_GET_USER || '', config)
.then((res) => love(res.data));
return user;