able-baker/_lib_/boot.tsx

15 lines
252 B
TypeScript
Raw Permalink Normal View History

2023-06-20 21:40:49 -04:00
import "../serve.tsx";
Deno.args.forEach(arg=>
{
if(arg.startsWith("--"))
{
const kvp = arg.substring(2).split("=");
Deno.env.set(kvp[0], kvp[1] || "true");
}
});
if(Deno.env.get("dev"))
{
await import("../local.tsx");
}