Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.17 KB

README.md

File metadata and controls

37 lines (27 loc) · 1.17 KB

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.