docs: fix CORS issue and broken example link (#2727)
### Change Type - [x] `documentation` — Changes to the documentation only[^2] ### Release Notes - Fixes docs CORS issue.
This commit is contained in:
parent
dc92e2c61f
commit
47f428eb6f
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ const FACEBOOK_CARD = 'social-og.png'
|
|||
const THEME_COLOR = '#FFFFFF'
|
||||
|
||||
export const metadata: Metadata = {
|
||||
metadataBase: new URL('https://www.tldraw.dev'),
|
||||
metadataBase: new URL('https://tldraw.dev'),
|
||||
title: {
|
||||
default: TITLE,
|
||||
template: `%s • ${TITLE}`,
|
||||
|
|
|
@ -10,7 +10,7 @@ import Autocomplete, { DropdownOption } from './Autocomplete'
|
|||
const HOST_URL =
|
||||
process.env.NODE_ENV === 'development'
|
||||
? 'http://localhost:3001'
|
||||
: process.env.NEXT_PUBLIC_SITE_URL ?? 'https://www.tldraw.dev'
|
||||
: process.env.NEXT_PUBLIC_SITE_URL ?? 'https://tldraw.dev'
|
||||
|
||||
export function Search() {
|
||||
const [searchType, setSearchType] = useState<SEARCH_TYPE>(SEARCH_TYPE.NORMAL)
|
||||
|
|
Loading…
Reference in a new issue