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:
Mime Čuvalo 2024-02-05 14:52:05 +00:00 committed by GitHub
parent dc92e2c61f
commit 47f428eb6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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}`,

View file

@ -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)