diff --git a/.env.local.sample b/.env.local.sample index 39b64239..99c5675c 100644 --- a/.env.local.sample +++ b/.env.local.sample @@ -3,12 +3,14 @@ # Prepend "NEXT_PUBLIC_" to Next.js env vars to expose them as process.env.NEXT_PUBLIC_ANALYTICS_ID, for example NEXT_PUBLIC_API_URL=http://localhost:8080/api/ -NEXT_PUBLIC_BASE_URL=http://localhost:8080 -NEXT_PUBLIC_CONTACT_FORM_POST_URL="https://rubinobs.org" +NEXT_PUBLIC_BASE_URL=http://localhost:3000 +NEXT_PUBLIC_CONTACT_FORM_POST_URL=http://localhost:8080/actions/contact-form/send NEXT_PUBLIC_GOOGLE_APP_ID= -NEXT_PUBLIC_PAGEPROOFER_ID= - CRAFT_REVALIDATE_SECRET_TOKEN= - -# This should not be present in Production, but it's OK for dev. -# NODE_TLS_REJECT_UNAUTHORIZED=0 +CLOUD_ENV = DEV +NEXT_PREVIEW_SLUG= +NEXT_PUBLIC_DEBUG_LOGGING= +NEXT_PUBLIC_RELEASE_URL= +NEXT_PUBLIC_EFD_URL= +NEXT_PUBLIC_HASURA_SECRET= +NEXT_PUBLIC_SURVEY_SPARROW= diff --git a/.github/workflows/master-push.yaml b/.github/workflows/master-push.yaml index f9839403..c847e266 100644 --- a/.github/workflows/master-push.yaml +++ b/.github/workflows/master-push.yaml @@ -39,6 +39,7 @@ jobs: --build-arg NEXT_PUBLIC_EFD_URL=https://hasura-e3g4rcii3q-uc.a.run.app/v1/graphql \ --build-arg NEXT_PUBLIC_HASURA_SECRET=_qfq_tMbyR4brJ@KHCzuJRU7 \ --build-arg NEXT_PUBLIC_RELEASE_URL=`https://noirlab.edu/public/api/v2/releases/{{ID}}/?lang={{SITE}}&translation_mode=fallback` \ + --build-arg NEXT_PUBLIC_SURVEY_SPARROW=true \ . - name: Configure Docker Auth diff --git a/.github/workflows/prod-push.yaml b/.github/workflows/prod-push.yaml index 59fb9e6a..28925f13 100644 --- a/.github/workflows/prod-push.yaml +++ b/.github/workflows/prod-push.yaml @@ -45,6 +45,7 @@ jobs: --build-arg NEXT_PUBLIC_EFD_URL=https://hasura-e3g4rcii3q-uc.a.run.app/v1/graphql \ --build-arg NEXT_PUBLIC_HASURA_SECRET=_qfq_tMbyR4brJ@KHCzuJRU7 \ --build-arg NEXT_PUBLIC_RELEASE_URL=`https://noirlab.edu/public/api/v2/releases/{{ID}}/?lang={{SITE}}&translation_mode=fallback` \ + --build-arg NEXT_PUBLIC_SURVEY_SPARROW=true \ . - name: Configure Docker Auth run: gcloud --quiet auth configure-docker diff --git a/lib/localeStrings/es.json b/lib/localeStrings/es.json index a7651059..7db769ff 100644 --- a/lib/localeStrings/es.json +++ b/lib/localeStrings/es.json @@ -71,7 +71,7 @@ "gallery-items": "Items de la galerĂ­a", "jobs": "Trabajos", "news": "Noticias", - "staff-profiles": "PVoces de Rubin", + "staff-profiles": "Voces de Rubin", "slideshows": "Diapositivas", "image": "Imagen", "video": "Video", diff --git a/pages/_app.js b/pages/_app.js index a97061a9..d3bb646f 100644 --- a/pages/_app.js +++ b/pages/_app.js @@ -11,6 +11,7 @@ import GlobalStyles from "@/styles/globalStyles"; import styles from "@/styles/styles.scss"; const PLAUSIBLE_DOMAIN = process.env.NEXT_PUBLIC_PLAUSIBLE_DOMAIN; +const SURVEY_SPARROW = process.env.NEXT_PUBLIC_SURVEY_SPARROW; function Client({ Component, pageProps }) { const authData = useAuthentication({ @@ -30,6 +31,66 @@ function Client({ Component, pageProps }) { strategy="afterInteractive" /> )} + {SURVEY_SPARROW && ( + <> +
+