Skip to content

Instantly share code, notes, and snippets.

View ozantunca's full-sized avatar

Ozan Tunca ozantunca

View GitHub Profile
import React, { FC } from 'react';
import { GatsbySeo } from 'gatsby-plugin-next-seo';
const Layout: FC = ({ children }) => (
<>
<GatsbySeo
title='Using More of Config'
description='This example uses more of the available config options.'
openGraph={{
url: 'https://www.example.com/somepage',
plugins: [
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-plugin-react-helmet-canonical-urls`,
options: {
siteUrl: `https://www.example.com`,
},
},
]
const { SocksProxyAgent } = require('socks-proxy-agent');
const axios = require('axios');
const agent = new SocksProxyAgent('socks5h://127.0.0.1:9050');
axios({
url: 'https://ifconfig.me',
httpsAgent: agent,
})
.then(({