build: remove vite base_url used for testing
This commit is contained in:
parent
94d976f127
commit
4dd8473f70
@ -1,15 +1,8 @@
|
|||||||
import react from '@vitejs/plugin-react'
|
import react from '@vitejs/plugin-react'
|
||||||
import { defineConfig, loadEnv } from 'vite'
|
import { defineConfig } from 'vite'
|
||||||
import tsconfigPaths from 'vite-tsconfig-paths'
|
import tsconfigPaths from 'vite-tsconfig-paths'
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig(({ mode }) => {
|
export default defineConfig({
|
||||||
// Load env file based
|
plugins: [react(), tsconfigPaths()]
|
||||||
// Set the third parameter to '' to load all env regardless of the `VITE_` prefix.
|
|
||||||
const env = loadEnv(mode, process.cwd(), '')
|
|
||||||
return {
|
|
||||||
// vite config
|
|
||||||
plugins: [react(), tsconfigPaths()],
|
|
||||||
...(env.VITE_BASE_URL ? { base: env.VITE_BASE_URL } : {})
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user