Easily implement good SEO in your Next js app using next-seo
This file contains hidden or 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
export const LIMIT = 10; | |
export const RANGE = 5; |
This file contains hidden or 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
import Error from "next/error"; | |
import Script from "next/script"; | |
import * as gtag from "utils/ga"; | |
import { useEffect } from "react"; | |
import { AppProps } from "next/app"; | |
import { useRouter } from "next/router"; | |
const App = ({ Component, pageProps, err }: AppProps & { err: Error }) => { | |
const router = useRouter(); |
This file contains hidden or 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
did:3:kjzl6cwe1jw14adt85e30363whpdxq48lwt1lax9meleqpl8lr64wh3zmnjnhez |
This file contains hidden or 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
import { NextSeo } from 'next-seo'; | |
export interface SeoProps { | |
url?: string; | |
title?: string; | |
description?: string; | |
cover?: string | null; | |
} | |
const SEO = ({ url, title, description, cover }: SeoProps) => { |
This file contains hidden or 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
import { useMemo } from 'react'; | |
const useswitchNetwork = async ( | |
account: string | null | undefined, | |
nextChainId: 1 | 10 | 42 | 69, | |
currentChainId: number | undefined, | |
forceOptimism = false, | |
) => { | |
if (!account) { | |
return; |
This file contains hidden or 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
const hexToRgb = hex => { | |
// http://stackoverflow.com/a/5624139 | |
const shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i | |
hex = hex.replace(shorthandRegex, (m, r, g, b) => { | |
return r + r + g + g + b + b | |
}) | |
const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex) | |
return result | |
? { |
- Changed project' subfolder name from:
"android/app/src/main/java/<com.old_id>/"
to:"android/app/src/main/java/com.new_id/"
- In
android/app/src/main/java/MY/APP/com.new_id/MainActivity.java:
, change:
package com.new_id;
- In
android/app/src/main/AndroidManifest.xml
, change:
package="com.new_id"
- In
android/app/build.gradle
, change:
This file contains hidden or 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
const hexToRgb = hex => { | |
// http://stackoverflow.com/a/5624139 | |
const shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i | |
hex = hex.replace(shorthandRegex, (m, r, g, b) => { | |
return r + r + g + g + b + b | |
}) | |
const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex) | |
return result | |
? { |
NewerOlder