Improve auto-update

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

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'})