dev configuration for api
All checks were successful
Build and Deploy Frontend / build-and-deploy (push) Successful in 6s
Build and Deploy API / build-and-deploy (push) Successful in 11s

This commit is contained in:
2026-03-10 22:58:21 -05:00
parent 9b6a4c75b9
commit b1865afced
4 changed files with 13 additions and 4 deletions

View File

@@ -5,8 +5,8 @@ run-name: "${{ gitea.event.head_commit.message }}: Deploy API"
on:
push:
branches:
- main
#branches:
# - main
paths:
- "api/**"
- ".gitea/workflows/deploy-api.yaml"

3
.gitignore vendored
View File

@@ -2,3 +2,6 @@
# empty for now
# .env # urrp I eated it :33
# this one is for real though
client/.env

View File

@@ -9,8 +9,9 @@ import type { User } from "../models/User.ts";
const API_URL: string = "/users";
const baseUrl: string = import.meta.env.DEV ? import.meta.env.VITE_DEV_API_URL : import.meta.env.VITE_PROD_API_URL; // TODO: overarching api service
const api = axios.create({
baseURL: "http://10.145.164.106:5227/api"
baseURL: baseUrl
});
export const getUsers = () => api.get<User[]>(`${API_URL}`);

View File

@@ -1,4 +1,9 @@
# idk yet
dotnet ./api/test.cs
#dotnet ./api/test.cs
set ASPNETCORE_ENVIRONMENT=Development
dotnet run
npm run dev