feat(project): init
This commit is contained in:
9
scripts/disable-api-route.mjs
Normal file
9
scripts/disable-api-route.mjs
Normal file
@@ -0,0 +1,9 @@
|
||||
import fs from "fs"
|
||||
|
||||
const file = "app/api/transfer/[path]/route.ts"
|
||||
const temp = "app/api/transfer/[path]/route.ts.ignore"
|
||||
|
||||
if (fs.existsSync(file)) {
|
||||
fs.renameSync(file, temp)
|
||||
console.log("✓ Temporarily disabled API route for export build")
|
||||
}
|
||||
Reference in New Issue
Block a user