authorization: fix auth url is undefined
This commit is contained in:
parent
b9d9c9d7bc
commit
ed5f096afa
@ -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
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user