mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-16 18:29:08 +00:00
absolutely massive typescript porting time
This commit is contained in:
parent
01f238f515
commit
30d08a630f
159 changed files with 2563 additions and 3861 deletions
|
@ -1,6 +1,6 @@
|
|||
import Router from 'next/router'
|
||||
|
||||
export default (context, target) => {
|
||||
export default async (context, target) => {
|
||||
if (context && context.res) {
|
||||
// server
|
||||
// 303: "See other"
|
||||
|
@ -8,6 +8,6 @@ export default (context, target) => {
|
|||
context.res.end()
|
||||
} else {
|
||||
// In the browser, we just pretend like this never even happened ;)
|
||||
Router.replace(target)
|
||||
await Router.replace(target)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue