Skip to content

Commit 237bae5

Browse files
committed
chore: Update Vite configuration to set base path for production environment
1 parent 094cb0b commit 237bae5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const isTest = process.env.NODE_ENV === "test";
1010

1111
// https://vite.dev/config/
1212
export default defineConfig({
13+
base: process.env.NODE_ENV === "production" ? "/react-ts-template/" : "/",
1314
plugins: [
1415
tsconfigPaths(),
1516
react({

0 commit comments

Comments
 (0)