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
8 changes: 4 additions & 4 deletions frontend/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const inter = Inter({
display: 'swap',
});

const SITE_URL = 'https://policyengine.org/us/keep-your-pay-act';
const OG_IMAGE = 'https://policyengine.org/assets/logos/policyengine/og-logo.png';
const SITE_URL = 'https://www.policyengine.org/us/keep-your-pay-act';
const OG_IMAGE = 'https://www.policyengine.org/assets/logos/policyengine/og-logo.png';

export const metadata: Metadata = {
title: {
Expand Down Expand Up @@ -103,8 +103,8 @@ const jsonLd = {
provider: {
'@type': 'Organization',
name: 'PolicyEngine',
url: 'https://policyengine.org',
logo: 'https://policyengine.org/assets/logos/policyengine/og-logo.png',
url: 'https://www.policyengine.org',
logo: 'https://www.policyengine.org/assets/logos/policyengine/og-logo.png',
sameAs: [
'https://twitter.com/ThePolicyEngine',
'https://www.facebook.com/PolicyEngine',
Expand Down
4 changes: 2 additions & 2 deletions frontend/app/robots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function robots(): MetadataRoute.Robots {
disallow: ['/api/', '/_next/'],
},
],
sitemap: 'https://policyengine.org/us/keep-your-pay-act/sitemap.xml',
host: 'https://policyengine.org',
sitemap: 'https://www.policyengine.org/us/keep-your-pay-act/sitemap.xml',
host: 'https://www.policyengine.org',
};
}
8 changes: 4 additions & 4 deletions frontend/app/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import type { MetadataRoute } from 'next';
export default function sitemap(): MetadataRoute.Sitemap {
return [
{
url: 'https://policyengine.org/us/keep-your-pay-act',
lastModified: new Date(),
url: 'https://www.policyengine.org/us/keep-your-pay-act',
lastModified: '2026-05-10',
changeFrequency: 'weekly',
priority: 1,
},
{
url: 'https://policyengine.org/us/keep-your-pay-act/amt-chart',
lastModified: new Date(),
url: 'https://www.policyengine.org/us/keep-your-pay-act/amt-chart',
lastModified: '2026-05-10',
changeFrequency: 'monthly',
priority: 0.7,
},
Expand Down
5 changes: 4 additions & 1 deletion frontend/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';

import { useCallback, useState, useRef, useEffect } from 'react';
import { useState, useRef, useEffect } from 'react';

/**
* Header matching policyengine-app-v2 exactly.
Expand All @@ -22,12 +22,15 @@ const FONT = "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sa
const NAV_ITEMS = [
{ label: 'Research', href: 'https://policyengine.org/us/research' },
{ label: 'Model', href: 'https://policyengine.org/us/model' },
{ label: 'API', href: 'https://policyengine.org/us/api' },
{ label: 'Python', href: 'https://policyengine.org/us/python' },
{
label: 'About',
hasDropdown: true,
items: [
{ label: 'Team', href: 'https://policyengine.org/us/team' },
{ label: 'Supporters', href: 'https://policyengine.org/us/supporters' },
{ label: 'Citations', href: 'https://policyengine.org/us/citations' },
],
},
{ label: 'Donate', href: 'https://policyengine.org/us/donate' },
Expand Down
8 changes: 8 additions & 0 deletions frontend/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import path from "node:path";
import { fileURLToPath } from "node:url";

const __dirname = path.dirname(fileURLToPath(import.meta.url));

// Use empty string for local dev (NEXT_PUBLIC_BASE_PATH=""), otherwise default to production path
const basePath = process.env.NEXT_PUBLIC_BASE_PATH !== undefined
? process.env.NEXT_PUBLIC_BASE_PATH
Expand All @@ -11,6 +16,9 @@ const nextConfig = {
images: {
formats: ['image/avif', 'image/webp'],
},
turbopack: {
root: path.join(__dirname, ".."),
},
async headers() {
return [
{
Expand Down