We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c0f196 commit 2058b25Copy full SHA for 2058b25
src/pages/assets.tsx
@@ -142,7 +142,8 @@ export const getStaticProps = (async ({ locale }) => {
142
const AssetsPage = () => {
143
// Ignore locale in the URL for SVG path in public directory to fix broken link
144
// SVG path changes from /en/images => /images
145
- const svgPathFromOrigin = window.location.origin
+ const svgPathFromOrigin =
146
+ typeof window !== `undefined` ? window.location.origin : ""
147
148
const { t } = useTranslation("page-assets")
149
const assetPageHeroImage = useColorModeValue(
0 commit comments