Add a docker build step.
Some checks failed
Check / Build and Push Backend Image (pull_request) Has been skipped
Check / Backend (pull_request) Failing after 2m24s
Check / Frontend (pull_request) Failing after 2m0s
Check / Build and Push Frontend Image (pull_request) Has been skipped

This commit is contained in:
Drew 2025-09-27 20:28:17 -07:00
parent ff6837a751
commit 1b3dfef45b
8 changed files with 183 additions and 4 deletions

View file

@ -6,7 +6,7 @@ import type {
ApiError,
} from '~/types/task'
const API_BASE_URL = '/api'
const API_BASE_URL = `${import.meta.env.VITE_API_URL || 'http://localhost:3000'}/api`
class ApiClient {
private async fetchWrapper<T>(

View file

@ -5,7 +5,7 @@
"scripts": {
"build": "react-router build",
"dev": "react-router dev",
"start": "react-router-serve ./build/server/index.js",
"start": "PORT=5173 react-router-serve ./build/server/index.js",
"test": "vitest",
"test:coverage": "vitest --coverage",
"test:run": "vitest run",

View file

@ -7,7 +7,7 @@ export default defineConfig({
server: {
proxy: {
"/api": {
target: "http://localhost:3000",
target: process.env.VITE_API_URL || "http://127.0.0.1:3000",
changeOrigin: true,
},
},