generated from edmundhung/remix-cloudflare-template
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: ensure graceful migration from the old urls * fix: missing resources index page
- Loading branch information
1 parent
4147b73
commit a5e6fca
Showing
4 changed files
with
53 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import type { MetaFunction } from '@remix-run/cloudflare'; | ||
import About from '~/components/About'; | ||
import { formatMeta } from '~/helpers'; | ||
import { getSearchOptions, getTitleBySearchOptions } from '~/search'; | ||
|
||
export const meta: MetaFunction = ({ location }) => { | ||
const searchOptions = getSearchOptions( | ||
`${location.pathname}${location.search}`, | ||
); | ||
const title = getTitleBySearchOptions(searchOptions); | ||
|
||
return formatMeta({ | ||
title, | ||
}); | ||
}; | ||
|
||
export default function Index() { | ||
return <About />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters