diff options
| author | netop://ウィビ <paul@webb.page> | 2026-10-26 13:21:27 -0700 |
|---|---|---|
| committer | netop://ウィビ <paul@webb.page> | 2026-10-26 13:21:27 -0700 |
| commit | bc06c099c03579e6bda6d3a5a6b4e014b1e919fb (patch) | |
| tree | 20c874b9455fd6f6ad323bd4557ebb947bc85e4f /src/utility/constant.ts | |
| parent | 02e2bc0839c1199ba090707f2067104821aed41b (diff) | |
| download | blog-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.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 ***/ } |