Fix api route caching issue
This commit is contained in:
Vendored
-2
@@ -4,7 +4,6 @@ import start from "./start";
|
||||
import dev from "./dev";
|
||||
import build from "./build";
|
||||
import { log } from "../utils/log";
|
||||
import rewritePages from "./rewrite-pages";
|
||||
/**
|
||||
* # Describe Program
|
||||
*/
|
||||
@@ -18,7 +17,6 @@ program
|
||||
program.addCommand(dev());
|
||||
program.addCommand(start());
|
||||
program.addCommand(build());
|
||||
program.addCommand(rewritePages());
|
||||
/**
|
||||
* # Handle Unavailable Commands
|
||||
*/
|
||||
|
||||
-2
@@ -1,2 +0,0 @@
|
||||
import { Command } from "commander";
|
||||
export default function (): Command;
|
||||
Vendored
-16
@@ -1,16 +0,0 @@
|
||||
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