Skip to content

Commit 312d347

Browse files
tylersayshidai-shi
andauthored
fix(build): fsRouterFiles were not included during static build (#1139)
fixes #1124 --------- Co-authored-by: Tyler <[email protected]> Co-authored-by: Daishi Kato <[email protected]>
1 parent cab4b7b commit 312d347

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/waku/src/lib/builder/build.ts

+1
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,7 @@ export async function build(options: {
749749
const cssAssets = clientBuildOutput.output.flatMap(({ type, fileName }) =>
750750
type === 'asset' && fileName.endsWith('.css') ? [fileName] : [],
751751
);
752+
platformObject.buildOptions.unstable_phase = 'emitStaticFiles';
752753
await emitStaticFiles(
753754
rootDir,
754755
config,

packages/waku/src/server.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ type PlatformObject = {
3333
| 'buildServerBundle'
3434
| 'buildSsrBundle'
3535
| 'buildClientBundle'
36-
| 'buildDeploy';
36+
| 'buildDeploy'
37+
| 'emitStaticFiles';
3738
};
3839
} & Record<string, unknown>;
3940

0 commit comments

Comments
 (0)