Skip to content

Place4you/cryptothinkerr

Repository files navigation

Vercel Redirect

It redirects the website request from facebook to any blog while keeping the meta data for the each link. This app uses Next.js and the SSR!

Requirements

git clone https://github.com/viswaah/vercel-redirect.git

Add an .env.local file to the root with the following:

GRAPHQL_ENDPOINT="https://wordpressite.com/graphql/"

Then run the development server,

npm run dev
# or
yarn dev
Name Required Default Description
GRAPHQL_ENDPOINT Yes - WordPress WPGraphQL endpoint (ex: https://host.com/graphl/)

To get the particular post from link https://wordpressdomain.com/path Replace it by https://newverceldomain.vercel.app/path When you post this new vercel link on facebook, It shows the post metadata and content from the vercel, When user click on this link it will redirect them to the actual wordpress domain.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published