build frontend in node docker container
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { useSession } from "./Session";
|
||||
|
||||
export const baseUrl = import.meta.env.VITE_BASE_URL as string;
|
||||
export const baseUrl = "";
|
||||
|
||||
export async function apiAuth(
|
||||
path: string,
|
||||
@@ -95,6 +95,7 @@ export type LoginRequest = {
|
||||
};
|
||||
|
||||
export const login = async (req: LoginRequest): Promise<void> => {
|
||||
console.log("baseUrl", baseUrl);
|
||||
try {
|
||||
const response = await fetch(`${baseUrl}api/token`, {
|
||||
method: "POST",
|
||||
|
||||
Reference in New Issue
Block a user