Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import { defineConfig, loadEnv } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import { resolve } from 'path'
|
||||
|
||||
export default defineConfig(({ mode }) => {
|
||||
const env = loadEnv(mode, process.cwd(), '')
|
||||
if (!process.env.VITE_APP_TITLE) {
|
||||
process.env.VITE_APP_TITLE = env.VITE_APP_TITLE || 'ToolBox'
|
||||
}
|
||||
if (process.env.VITE_APP_ICP === undefined) {
|
||||
process.env.VITE_APP_ICP = env.VITE_APP_ICP ?? ''
|
||||
}
|
||||
|
||||
return {
|
||||
plugins: [vue()],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': resolve(__dirname, 'src')
|
||||
}
|
||||
},
|
||||
server: {
|
||||
port: 3000,
|
||||
open: true
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user