Compare commits

..

2 Commits

3 changed files with 5 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
"name": "@furtherverse/desktop", "name": "@furtherverse/desktop",
"version": "1.0.0", "version": "1.0.0",
"private": true, "private": true,
"type": "module",
"main": "out/main/index.js", "main": "out/main/index.js",
"scripts": { "scripts": {
"build": "electron-vite build", "build": "electron-vite build",

View File

@@ -113,7 +113,7 @@ const createWindow = async () => {
height: 800, height: 800,
show: false, show: false,
webPreferences: { webPreferences: {
preload: join(__dirname, '../preload/index.mjs'), preload: join(__dirname, '../preload/index.js'),
sandbox: true, sandbox: true,
}, },
}) })

View File

@@ -9,6 +9,9 @@ export const env = createEnv({
client: { client: {
VITE_APP_TITLE: z.string().min(1).optional(), VITE_APP_TITLE: z.string().min(1).optional(),
}, },
shared: {
NODE_ENV: z.enum(['development', 'production', 'test']),
},
runtimeEnv: process.env, runtimeEnv: process.env,
emptyStringAsUndefined: true, emptyStringAsUndefined: true,
}) })