reactor: better debug.env

This commit is contained in:
草鞋没号 committed 2022-08-25 08:20:26 +08:00
1 parent d5f251f5d1
commit 9b5a3a9c61
4 files changed
+12 -14

No files matched your search

+1 -2
View File
@@ -25,8 +25,7 @@ export const ROOT_PATH = {
let win: BrowserWindow | null = null
// Here, you can also use other preload
const preload = join(__dirname, '../preload/index.js')
// 🚧 Use ['ENV_NAME'] avoid vite:define plugin
const url = process.env.VITE_DEV_SERVER_URL as string;
const url = process.env.VITE_DEV_SERVER_URL
const indexHtml = join(ROOT_PATH.dist, 'index.html')
async function createWindow() {