From 591e062a9f63181cf21abb4c4916e00bf1a020ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Oliva?= Date: Sat, 20 May 2023 10:03:04 -0600 Subject: Preparing to use GitHub Actions. Deploying a test page using GitHub Actions. --- vite.config.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'vite.config.js') 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 }) -- cgit v1.2.3