Update frontend host and backend domain defaults for deployment.

Allow preview host mc.rc707blog.top and switch default backend base URL to https://mcbc.rc707blog.top to match domain-based runtime access.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
renjue
2026-05-09 17:29:37 +08:00
parent 21c5bd9edd
commit 15a9ae0798
3 changed files with 8 additions and 2 deletions

View File

@@ -1 +1 @@
VITE_BACKEND_BASE_URL=http://127.0.0.1:14620 VITE_BACKEND_BASE_URL=https://mcbc.rc707blog.top

View File

@@ -1,4 +1,5 @@
const API_BASE_URL = import.meta.env.VITE_BACKEND_BASE_URL || "http://127.0.0.1:14620"; const API_BASE_URL =
import.meta.env.VITE_BACKEND_BASE_URL || "https://mcbc.rc707blog.top";
async function request(path, options = {}) { async function request(path, options = {}) {
const response = await fetch(`${API_BASE_URL}${path}`, options); const response = await fetch(`${API_BASE_URL}${path}`, options);

View File

@@ -7,4 +7,9 @@ export default defineConfig({
server: { server: {
port: 14621, port: 14621,
}, },
preview: {
host: "0.0.0.0",
port: 14621,
allowedHosts: ["mc.rc707blog.top"],
},
}) })