mirror of
https://github.com/bitinflow/rerun-encoder.git
synced 2026-11-01 05:09:23 +00:00
Improve auto-update
This commit is contained in:
1 parent
03a92e9d85
commit
4ba1f1fb5f
3 files changed
+12
-7
No files matched your search
@@ -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'})
|
||||
|
||||
Reference in new issue
Block a user