mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-21 01:01:17 -04:00
move messy base URL definition to build time in next.config.js
This commit is contained in:
@@ -6,13 +6,7 @@ module.exports = {
|
||||
siteDomain: "jarv.is",
|
||||
siteLocale: "en-US",
|
||||
timeZone: "America/New_York", // https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
|
||||
baseUrl:
|
||||
// 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"
|
||||
? `http://localhost:${process.env.NEXT_DEV_PORT}`
|
||||
: "https://jarv.is", // fallback to production URL
|
||||
baseUrl: process.env.BASE_URL || "", // see next.config.js
|
||||
onionDomain: "http://jarvis2i2vp4j4tbxjogsnqdemnte5xhzyi7hziiyzxwge3hzmh57zad.onion",
|
||||
shortDescription: "Front-End Web Developer in Boston, MA",
|
||||
longDescription:
|
||||
|
Reference in New Issue
Block a user