Skip to content

Commit

Permalink
fix base ref
Browse files Browse the repository at this point in the history
  • Loading branch information
danielleroux committed Oct 2, 2024
1 parent e7834f7 commit 5b587f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions apps/react-starter/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { defineConfig } from "vitest/config";
import react from "@vitejs/plugin-react";

const url = process.env.REACT_URL ?? "/";
const base = process.env.NODE_ENV === "production" ? url : "/";
const base = process.env.REACT_BASE || "/";

// https://vitejs.dev/config/
export default defineConfig({
Expand Down
2 changes: 1 addition & 1 deletion turbo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://turbo.build/schema.json",
"globalEnv": ["CI", "REACT_URL"],
"globalEnv": ["CI", "REACT_BASE"],
"globalDependencies": ["**/.env.*local"],
"tasks": {
"build": {
Expand Down

0 comments on commit 5b587f7

Please sign in to comment.