Add prerendering and static paths for Uptime page to support multilingual routing
- Enabled prerendering for the Uptime page to improve performance. - Implemented getStaticPaths function to generate paths for supported languages, enhancing SEO and accessibility for multilingual users.
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
---
|
||||
export const prerender = true;
|
||||
export async function getStaticPaths() {
|
||||
return supportedLanguages.map((lang) => ({
|
||||
params: { lang },
|
||||
}));
|
||||
}
|
||||
import UptimeStatus from '../../components/UptimeStatus.astro';
|
||||
import Layout from '../../layouts/PageLayout.astro';
|
||||
import { supportedLanguages, getTranslation } from '~/i18n/translations';
|
||||
|
Reference in New Issue
Block a user