There was an error while loading. Please reload this page.
1 parent d26dc06 commit 48c2011Copy full SHA for 48c2011
1 file changed
src/components/about/utils.ts
@@ -4,7 +4,11 @@ import { WP_API_PAGES_ENDPOINT } from './config'
4
// Define a default query function that will receive the query key
5
export const defaultQueryFn = async <T extends unknown>(
6
key: number
7
-): Promise<T> => (await fetch(`${WP_API_PAGES_ENDPOINT}/${key}`)).json()
+): 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()
12
13
// Provide the default query function to your app with defaultConfig
14
export const wpQueryCache = new QueryCache({
0 commit comments