Skip to content

Commit

Permalink
Only use skeleton in production for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer committed Feb 12, 2020
1 parent aedb95d commit 2e1042b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/next/next-server/server/next-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,15 @@ export default class Server {
// * Dynamic pages should return their skeleton, then finish the data
// request on the client-side.
//
if (!didRespond && !isDataReq && !isPreviewMode && isDynamicPathname) {
if (
!didRespond &&
!isDataReq &&
!isPreviewMode &&
isDynamicPathname &&
// TODO: development should trigger fallback when the path is not in
// `getStaticPaths`, for now, let's assume it is.F
isProduction
) {
let html: string

// Production already emitted the fallback as static HTML.
Expand Down

0 comments on commit 2e1042b

Please sign in to comment.