Skip to content

Commit

Permalink
fix(gh-pages): blank page
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammed-Rahif committed Sep 26, 2024
1 parent 00a9656 commit 55be62f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import path from 'path';
import fs from 'fs';

const authInfoFilePath = path.join(__dirname, './.tmp', 'auth_info.json');
const isNeutralino = process.env._?.includes('neu');

// https://github.com/neutralinojs/neutralinojs/issues/909#issuecomment-1493518600.
const neutralino = (): Plugin => {
let config: ConfigEnv;
Expand Down Expand Up @@ -43,7 +45,7 @@ export default defineConfig({
'@': path.resolve('./src/lib')
}
},
// base: '/Notepad',
base: isNeutralino ? '' : '/Notepad',
build: {
outDir: 'www'
},
Expand All @@ -52,7 +54,7 @@ export default defineConfig({
strictPort: true
},
define: {
isNeutralino: fs.existsSync(authInfoFilePath)
isNeutralino
},
plugins: [
svelte(),
Expand Down

0 comments on commit 55be62f

Please sign in to comment.