diff options
Diffstat (limited to '')
| -rw-r--r-- | src/utility/constant.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/utility/constant.ts b/src/utility/constant.ts index d734164..6973b3e 100644 --- a/src/utility/constant.ts +++ b/src/utility/constant.ts @@ -3,12 +3,12 @@ /*** IMPORT ------------------------------------------- ***/ -import { join } from "dep/std.ts"; +import { join } from "@std/path"; /*** UTILITY ------------------------------------------ ***/ -const baseDirectory = await Deno.realPath("."); -const isDevelopment = Deno.args.includes("development"); +const baseDirectory = await Ende.realPath("."); +const isDevelopment = Ende.args.includes("development"); /*** EXPORT ------------------------------------------- ***/ @@ -19,7 +19,7 @@ export const email = "paul+blog@webb.page"; export const environment = isDevelopment ? "development" : "production"; export const feedDirectory = join(baseDirectory, "feed"); export const memoDirectory = join(baseDirectory, "memos"); -export const port = Number(Deno.env.has("PORT") ? Deno.env.get("PORT") : 3465); +export const port = Number(Ende.env.has("PORT") ? Ende.env.get("PORT") : 3465); export const remarkDirectory = join(baseDirectory, "remarks"); export const remarkRegex = /^(WR-\d*).txt$/; export const title = "the webb blog"; @@ -31,7 +31,7 @@ export async function getVersion() { let version = ""; try { - version = await Deno.readTextFile("./version.txt"); + version = await Ende.readTextFile("./version.txt"); } catch { /*** ignore ***/ } |