File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { WpQueryKeys } from './types'
22
33export const WP_API_PAGES_ENDPOINT =
4- 'https://languagemapping .org/wp-json/wp/v2/pages'
4+ 'https://content.endangeredlanguagealliance .org/wp-json/wp/v2/pages'
55
66export const wpQueryIDs = {
7- about : 203 ,
8- help : 209 ,
7+ about : 9461 ,
8+ help : 9518 ,
99} as { [ key in WpQueryKeys ] : number }
1010
1111export const HIDE_WELCOME_LOCAL_STG_KEY = 'hideWelcome'
Original file line number Diff line number Diff line change @@ -4,7 +4,11 @@ import { WP_API_PAGES_ENDPOINT } from './config'
44// Define a default query function that will receive the query key
55export const defaultQueryFn = async < T extends unknown > (
66 key : number
7- ) : Promise < T > => ( await fetch ( `${ WP_API_PAGES_ENDPOINT } /${ key } ` ) ) . json ( )
7+ ) : Promise < T > =>
8+ // `password` is part of a hack to attempt to exclude/filter NYC Map pages
9+ // from the ELA website's NextJS builds. It is not intended for security, so
10+ // it's safe to commit.
11+ ( await fetch ( `${ WP_API_PAGES_ENDPOINT } /${ key } ?password=1234` ) ) . json ( )
812
913// Provide the default query function to your app with defaultConfig
1014export const wpQueryCache = new QueryCache ( {
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ export const Nav: FC = () => {
103103 < ListItem button dense disableGutters >
104104 < Link
105105 underline = "none"
106- href = "https://languagemapping. org/wp-content/uploads/2021/03/Help-Video-Script .pdf"
106+ href = "https://content.endangeredlanguagealliance. org/wp-content/uploads/2022/12/User-Manual .pdf"
107107 target = "_blank"
108108 className = { listLink }
109109 >
You can’t perform that action at this time.
0 commit comments