Improve auto-update

This commit is contained in:
René Preuß committed 2023-03-04 00:37:03 +01:00
1 parent 03a92e9d85
commit 4ba1f1fb5f
3 files changed
+12 -7

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ export class InternalServer {
});
router.get('/oauth', (ctx) => {
if(process.env.VITE_DEV_SERVER_URL) {
if (process.env.VITE_DEV_SERVER_URL) {
ctx.body = fs.readFileSync(join(__dirname, '..', '..', 'public', 'callback.html'), {encoding: 'utf8'})
} else {
ctx.body = fs.readFileSync(join(process.env.DIST, 'callback.html'), {encoding: 'utf8'})