Skip to content

Commit 5b587f7

Browse files
committed
fix base ref
1 parent e7834f7 commit 5b587f7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

apps/react-starter/vite.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { defineConfig } from "vitest/config";
22
import react from "@vitejs/plugin-react";
33

4-
const url = process.env.REACT_URL ?? "/";
5-
const base = process.env.NODE_ENV === "production" ? url : "/";
4+
const base = process.env.REACT_BASE || "/";
65

76
// https://vitejs.dev/config/
87
export default defineConfig({

turbo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://turbo.build/schema.json",
3-
"globalEnv": ["CI", "REACT_URL"],
3+
"globalEnv": ["CI", "REACT_BASE"],
44
"globalDependencies": ["**/.env.*local"],
55
"tasks": {
66
"build": {

0 commit comments

Comments
 (0)