Skip to content

Commit

Permalink
Fix missing param
Browse files Browse the repository at this point in the history
  • Loading branch information
styfle committed Oct 21, 2021
1 parent 4bea8bc commit 9d62bfb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/next/server/dev/next-dev-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -780,15 +780,20 @@ export default class DevServer extends Server {
// from waiting on them for the page to load in dev mode

const __getStaticPaths = async () => {
const { publicRuntimeConfig, serverRuntimeConfig, httpAgentOptions } =
this.nextConfig
const {
configFileName,
publicRuntimeConfig,
serverRuntimeConfig,
httpAgentOptions,
} = this.nextConfig
const { locales, defaultLocale } = this.nextConfig.i18n || {}

const paths = await this.staticPathsWorker.loadStaticPaths(
this.distDir,
pathname,
!this.renderOpts.dev && this._isLikeServerless,
{
configFileName,
publicRuntimeConfig,
serverRuntimeConfig,
},
Expand Down
1 change: 1 addition & 0 deletions packages/next/server/dev/static-paths-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export async function loadStaticPaths(
return buildStaticPaths(
pathname,
components.getStaticPaths,
config.configFileName,
locales,
defaultLocale
)
Expand Down

0 comments on commit 9d62bfb

Please sign in to comment.