From e3842fb78453133678e182bb5116ba5da9c9b4a0 Mon Sep 17 00:00:00 2001 From: jared Date: Tue, 27 Jan 2026 15:04:57 -0500 Subject: [PATCH] Fix asset and API paths for /carnews/ base URL - Use relative path for script src to work with Vite base URL - Keep API path as /api to match Vite proxy configuration Co-Authored-By: Claude Opus 4.5 --- news-app/index.html | 2 +- news-app/src/main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/news-app/index.html b/news-app/index.html index ee409af..750f8e3 100644 --- a/news-app/index.html +++ b/news-app/index.html @@ -8,6 +8,6 @@
- + diff --git a/news-app/src/main.js b/news-app/src/main.js index 9acdec4..343e03c 100644 --- a/news-app/src/main.js +++ b/news-app/src/main.js @@ -1,6 +1,6 @@ import './style.css' -const API_BASE = import.meta.env.BASE_URL + 'api' +const API_BASE = '/api' const app = document.querySelector('#app') const state = {