Major Bugfix. Fix server component client compatibility
This commit is contained in:
+2
@@ -0,0 +1,2 @@
|
||||
import { Command } from "commander";
|
||||
export default function (): Command;
|
||||
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
import { Command } from "commander";
|
||||
import { log } from "../../utils/log";
|
||||
import init from "../../functions/init";
|
||||
import rewritePagesModule from "../../utils/rewrite-pages-module";
|
||||
export default function () {
|
||||
return new Command("rewrite-pages")
|
||||
.description("Rewrite pages from src to .bunext dir")
|
||||
.action(async () => {
|
||||
process.env.NODE_ENV = "production";
|
||||
process.env.BUILD = "true";
|
||||
await init();
|
||||
log.banner();
|
||||
log.build("Rewriting Pages ...");
|
||||
await rewritePagesModule();
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user