aboutsummaryrefslogtreecommitdiff
path: root/vite.config.js
diff options
context:
space:
mode:
authorAdrián Oliva <adrian.oliva@cimat.mx>2023-05-20 10:03:04 -0600
committerAdrián Oliva <adrian.oliva@cimat.mx>2023-05-20 10:03:04 -0600
commit591e062a9f63181cf21abb4c4916e00bf1a020ed (patch)
treeea1ea911501e832f690d974e94a9190c22806b09 /vite.config.js
parentc824e2bc5669eab2b1f1420601e0ee1d17da71fc (diff)
downloadToDo-App-FE-591e062a9f63181cf21abb4c4916e00bf1a020ed.tar.gz
ToDo-App-FE-591e062a9f63181cf21abb4c4916e00bf1a020ed.zip
Preparing to use GitHub Actions.
Deploying a test page using GitHub Actions.
Diffstat (limited to '')
-rw-r--r--vite.config.js13
1 files changed, 11 insertions, 2 deletions
diff --git a/vite.config.js b/vite.config.js
index b1b5f91..001cdf2 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -2,6 +2,15 @@ import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
-export default defineConfig({
- plugins: [react()]
+export default defineConfig(({ command }) => {
+ const config = {
+ plugins: [react()],
+ base: '/',
+ }
+
+ if (command !== 'serve') {
+ config.base = '/ToDo-App-Front-End/'
+ }
+
+ return config
})