fakenickels / fakenickels-blog

fakenickels - Hi, I'm fakenickels
https://blog.fakenickels.dev
6 stars 1 forks source link

Migrate to Next and Vercel #10

Closed dwwoelfel closed 3 years ago

dwwoelfel commented 3 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://fake-fakenickels-blog.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/fakenickels/fakenickels-blog
  4. Copy over all of the environment variables from your Netlify deploy image
  5. Add the following extra variables

    VERCEL_URL

    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

    If you want to change the default code theme. You can use any theme from https://sourcecodeshots.com/docs/supported-themes

    NEXT_PUBLIC_CODE_THEME="github-light"
  6. Wait for the deploy to finish and check that the site works
fakenickels commented 3 years ago

Hey thanks a lot! I totally missed this in my notifications.

fakenickels commented 3 years ago

Very thoroughly explained, thank you. Gonna upgrade soon

fakenickels commented 3 years ago

FYI Just moved to Vercel, everything worked perfectly