Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ WORKDIR /app
# Baked in at build time (Vite inlines import.meta.env), so this is the origin
# every "View Live" link and permalink preview in the published image points at.
# Override with --build-arg to publish an image aimed at another site.
ARG VITE_PUBLIC_SITE_URL="https://dev.thetriangle.org"
ARG VITE_PUBLIC_SITE_URL="https://www.thetriangle.org"
ENV VITE_PUBLIC_SITE_URL=${VITE_PUBLIC_SITE_URL}

COPY package.json package-lock.json ./
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/auth/urls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ export function authBaseUrl() {

// Public-facing site origin, used for article permalinks (e.g. so Yoast can
// tell internal links from outbound ones) and for the "View Live" links.
// Defaults to the dev site: the CMS is not yet driving production, so an
// unconfigured build pointing at www would send editors to pages that do not
// reflect what they just saved.
// Defaults to www now that the CMS drives production: an unconfigured build
// pointing at dev would send editors to a copy of the site their readers never
// see. Override with VITE_PUBLIC_SITE_URL to aim a build at dev instead.
export function publicSiteUrl() {
return trimTrailingSlashes(import.meta.env.VITE_PUBLIC_SITE_URL ?? "https://dev.thetriangle.org")
return trimTrailingSlashes(import.meta.env.VITE_PUBLIC_SITE_URL ?? "https://www.thetriangle.org")
}

// The public permalink for a slug. The URL is fully determined by the slug, so
Expand Down
Loading