1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-21 01:01:17 -04:00

type check .js files

This commit is contained in:
2022-07-05 20:17:01 -04:00
parent 760f07cd11
commit c69a593d61
8 changed files with 216 additions and 195 deletions

View File

@@ -1,3 +1,4 @@
// @ts-check
// do not convert to ESM and/or TS -- this needs to be imported in CJS files like next.config.js too
module.exports = {
// Site info
@@ -9,7 +10,7 @@ module.exports = {
// NOTE: no trailing slashes!
process.env.NEXT_PUBLIC_VERCEL_ENV !== "production" && process.env.NEXT_PUBLIC_VERCEL_URL !== undefined
? `https://${process.env.NEXT_PUBLIC_VERCEL_URL}`
: process.env.IS_DEV_SERVER === true
: process.env.IS_DEV_SERVER === "true"
? `http://localhost:${process.env.NEXT_DEV_PORT}`
: "https://jarv.is", // fallback to production URL
onionDomain: "http://jarvis2i2vp4j4tbxjogsnqdemnte5xhzyi7hziiyzxwge3hzmh57zad.onion",