aboutsummaryrefslogtreecommitdiff
path: root/src/utility/constant.ts
diff options
context:
space:
mode:
authornetop://ウィビ <paul@webb.page>2026-10-26 13:21:27 -0700
committernetop://ウィビ <paul@webb.page>2026-10-26 13:21:27 -0700
commitbc06c099c03579e6bda6d3a5a6b4e014b1e919fb (patch)
tree20c874b9455fd6f6ad323bd4557ebb947bc85e4f /src/utility/constant.ts
parent02e2bc0839c1199ba090707f2067104821aed41b (diff)
downloadblog-bc06c099c03579e6bda6d3a5a6b4e014b1e919fb.tar.gz
blog-bc06c099c03579e6bda6d3a5a6b4e014b1e919fb.zip
new memo
- migrates to Ende from Deno
Diffstat (limited to 'src/utility/constant.ts')
-rw-r--r--src/utility/constant.ts10
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 ***/
}