bdougie / live

:microphone: The code that powers bdougie.live
https://bdougie.live
MIT License
24 stars 11 forks source link

Migrate to Next and Vercel #52

Closed dwwoelfel closed 4 years ago

dwwoelfel commented 4 years ago

Updates repo to the latest next/vercel version of OneBlog.

I haven't been able to get Netlify hosting to work with next.js, so this will also require migrating to Vercel.

Example deployed here: https://bdougie-live-next-test.vercel.app/

Happy to hop on a call and help you get everything switched over. Shouldn't take more than 15 minutes.

Steps to migrate to Vercel:

  1. Go to the Vercel dashboard
  2. Click "Import Project", then "Import Git Repository"
  3. Add this repo's URL https://github.com/bdougie/live
  4. Copy over all of the environment variables from your Netlify deploy image
  5. Add the following extra variables

    NEXT_PUBLIC_SITE_HOSTNAME="https://bdougie.live"

    If you have a google analytics id, also add

    NEXT_PUBLIC_GOOGLE_ANALYTICS_TRACKING_ID="Optional google analytics id, e.g. UA-28732921-1"

    If you want to disable the attribution under the individual post page that links back to OneGraph

    NEXT_PUBLIC_HIDE_ATTRIBUTION=true
  6. Wait for the deploy to finish and check that the site works
  7. Go to the domains settings on Vercel to change bdougie.live to point to it
netlify[bot] commented 4 years ago

Deploy request for bdougie-live accepted.

Accepted with commit b4442e21e93097b77e94e7036db5682cd580fc82

https://app.netlify.com/sites/bdougie-live/deploys/5f7f6aa45746a700078c83e1

bdougie commented 4 years ago

Wow, this is great @dwwoelfel. I am fine with vercel and happy to leverage this to get the next.js benefits. I will take a look at this migration tomorrow morning and check back if I have questions. Also happy to still set up a time to chat about this too.

bdougie commented 4 years ago

Going to merge to test out the deploy on vercel.