Skip to content

Commit

Permalink
rollback to use await import
Browse files Browse the repository at this point in the history
  • Loading branch information
codehz committed Aug 17, 2024
1 parent 7ac1d0b commit 2389dc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class StaticRouters {
"No client-side script found for server-side component: " +
serverSide.filePath
);
const module = require(serverSide.filePath);
const module = await import(serverSide.filePath);
this.#cached.add(serverSide.filePath);
const result = await module.getServerSideProps?.({
params: serverSide.params,
Expand Down

0 comments on commit 2389dc0

Please sign in to comment.