Skip to content

Conversation

@ChristopherChudzicki
Copy link
Contributor

@ChristopherChudzicki ChristopherChudzicki commented Sep 18, 2024

What are the relevant tickets?

Closes https://github.com/mitodl/hq/issues/5473

Description (What does it do?)

This PR:

  • loads the correct font for MIT Learn
  • Adds a noindex tag, based on MITOL_NOINDEX
  • Loads APPZI based on NEXT_PUBLIC_APPZI_URL.

How can this be tested?

  1. View any page in the app and inspect text. Check that the Neue Haas Grotesk font is being used.

    • Checking what font is actually used is a little tricky. Here's how you can do it in Chrome dev tools.
    Screenshot 2024-09-18 at 5 12 15 PM
  2. In your env file, set NEXT_PUBLIC_APPZI_URL="https://w.appzi.io/w.js?token=Q2pSI" (this is not a secret env var, hence NEXT_PUBLIC and client side availability). Restart NextJS / Docker. The Appzi feedback form should appear on enter-right, just like prod.

  3. Set MITOL_NOINDEX=true in your env file. and restart NextJS / Docker. The site should now include a noindex tag in <head>

Copy link
Contributor

@shanbady shanbady left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approving - pending conflict resolution with nextjs

Copy link
Contributor

@shanbady shanbady left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems the frontend doesnt come up in a codespace. its possible that some of the env variables need to get added to the env/codespaces.env

@ChristopherChudzicki
Copy link
Contributor Author

It seems the frontend doesnt come up in a codespace. its possible that some of the env variables need to get added to the env/codespaces.env

Probably is env var issue. I think this is worth fixing, but we should handle it in a separate PR.

Copy link
Contributor

@shanbady shanbady left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll create a separate issue for getting the codespaces to work. I'm guessing some of it may have to do with the hostname settings etc

@ChristopherChudzicki ChristopherChudzicki merged commit 5221a9f into nextjs Sep 20, 2024
jonkafton pushed a commit that referenced this pull request Sep 23, 2024
* load adobe font

* add noindex based on MITOL_NOINDEX

* add appzi script

* validate env

* comment, fix ci

* build nextjs for production
jonkafton pushed a commit that referenced this pull request Sep 23, 2024
* load adobe font

* add noindex based on MITOL_NOINDEX

* add appzi script

* validate env

* comment, fix ci

* build nextjs for production
jonkafton pushed a commit that referenced this pull request Sep 24, 2024
* load adobe font

* add noindex based on MITOL_NOINDEX

* add appzi script

* validate env

* comment, fix ci

* build nextjs for production
@odlbot odlbot mentioned this pull request Oct 22, 2024
74 tasks
@rhysyngsun rhysyngsun deleted the cc/nextjs-global-stuff branch February 7, 2025 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants