Skip to content

Commit

Permalink
Temporary fix for vercel/next.js#5598
Browse files Browse the repository at this point in the history
  • Loading branch information
swolidity committed Nov 20, 2018
1 parent d6644bf commit 5bb9cbe
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion api/datamodel.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ type Notification {
updatedAt: DateTime!
}

type Announcements {
type Message {
id: ID! @unique
course: Course!
message: String
createdAt: DateTime!
updatedAt: DateTime!
}
1 change: 0 additions & 1 deletion web/components/Draft.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ class Draft extends React.Component<{}, IEditorState> {
minHeight: "44px",
fontSize: "22px",
padding: "20px",
fontFamily: "Roboto",
}}
>
<Editor
Expand Down
6 changes: 6 additions & 0 deletions web/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,11 @@ module.exports = withCSS(
API_URL_GOOGLE: process.env.API_URL_GOOGLE,
WEBSOCKET_URL: process.env.WEBSOCKET_URL,
},
onDemandEntries: {
// period (in ms) where the server will keep pages in the buffer
maxInactiveAge: 25 * 1000,
// number of pages that should be kept simultaneously without being disposed
pagesBufferLength: 5,
},
}),
);
Empty file added web/pages/grades.tsx
Empty file.
1 change: 1 addition & 0 deletions web/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = routes()
.add("calendar")
.add("users", "/users/:id")
.add("courses", "/courses/:id")
.add("course-grades", "/course/:id/grades", "grades")
.add("login", "/login", "login")
.add("finishLogin", "/auth/:type")
.add("settings");

0 comments on commit 5bb9cbe

Please sign in to comment.