chore: promote dev to uat — VITE_API_URL fix (GRO-1280, GRO-1206)
chore: promote dev to uat — VITE_API_URL fix (GRO-1280)
This commit was merged in pull request #416.
This commit is contained in:
@@ -119,6 +119,8 @@ jobs:
|
|||||||
run: pnpm install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
- name: Build all packages
|
- name: Build all packages
|
||||||
|
env:
|
||||||
|
VITE_API_URL: ""
|
||||||
run: pnpm build
|
run: pnpm build
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ RUN pnpm install --frozen-lockfile
|
|||||||
|
|
||||||
# Build
|
# Build
|
||||||
FROM deps AS builder
|
FROM deps AS builder
|
||||||
|
ARG VITE_API_URL=
|
||||||
|
ENV VITE_API_URL=
|
||||||
COPY packages/types/ packages/types/
|
COPY packages/types/ packages/types/
|
||||||
COPY apps/web/ apps/web/
|
COPY apps/web/ apps/web/
|
||||||
RUN pnpm --filter @groombook/web build
|
RUN pnpm --filter @groombook/web build
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { createAuthClient } from "better-auth/react";
|
import { createAuthClient } from "better-auth/react";
|
||||||
|
|
||||||
export const authClient = createAuthClient({
|
export const authClient = createAuthClient({
|
||||||
baseURL: import.meta.env.VITE_API_URL ?? "",
|
baseURL: import.meta.env.VITE_API_URL || window.location.origin,
|
||||||
});
|
});
|
||||||
|
|
||||||
export const { signIn, signOut, useSession, changePassword } = authClient;
|
export const { signIn, signOut, useSession, changePassword } = authClient;
|
||||||
Reference in New Issue
Block a user