GithubHelp home page GithubHelp logo

alvarlagerlof / next-banner Goto Github PK

View Code? Open in Web Editor NEW
45.0 45.0 6.0 874.15 MB

🖼️ Generate Open Graph images for Next.js on build

Home Page: next-banner.vercel.app

License: MIT License

JavaScript 65.84% TypeScript 31.48% CSS 2.69%
next nextjs ogimage opengraph react vercel

next-banner's Introduction

Hello folks!

My name is Alvar Lagerlöf and I'm a he/him from Stockholm, Sweden. I enjoy making software and designing things. You can find more from me on my Twitter, LinkedIn or my website.

Thank you to the folks who sponsor my work on GitHub!

next-banner's People

Contributors

alvarlagerlof avatar dependabot[bot] avatar github-actions[bot] avatar konstantinmuenster avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

next-banner's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate Limited

These updates are currently rate limited. Click on a checkbox below to force their creation now.

  • chore(deps): update dependency eslint-config-next to v12.2.0
  • chore(deps): update actions/checkout action to v3
  • chore(deps): update dependency @types/jest to v28

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/ci.yml
  • actions/checkout v2
  • actions/checkout v2
  • actions/setup-node v3
  • bahmutov/npm-install v1
npm
core/package.json
  • cross-spawn ^7.0.3
  • get-port ^6.1.2
  • merge-anything ^5.0.2
  • puppeteer ^15.3.0
  • tasuku ^2.0.0
  • @babel/core 7.17.10
  • @babel/preset-env 7.17.10
  • @babel/preset-react 7.17.12
  • @babel/preset-typescript 7.17.12
  • @testing-library/jest-dom 5.16.4
  • @testing-library/react 13.2.0
  • @types/jest 27.5.1
  • @types/node 17.0.33
  • @types/react 18.0.14
  • @types/react-dom 18.0.4
  • @typescript-eslint/eslint-plugin 5.30.0
  • @typescript-eslint/parser 5.23.0
  • babel-jest 28.1.2
  • commitizen 4.2.4
  • concurrently 7.1.0
  • cz-conventional-changelog 3.3.0
  • esbuild 0.14.39
  • eslint 8.15.0
  • eslint-config-prettier 8.5.0
  • eslint-plugin-react 7.30.1
  • jest 28.1.0
  • jest-environment-jsdom 28.1.0
  • next 12.2.0
  • prettier 2.6.2
  • react 18.2.0
  • react-dom 18.2.0
  • rimraf 3.0.2
  • semantic-release 19.0.2
  • typescript 4.7.4
  • react ^18.0.0
  • react-dom ^18.0.0
example/package.json
  • next 12.2.0
  • next-banner 1.0.0-semantic-release
  • react 18.2.0
  • react-dom 18.2.0
  • @types/node 17.0.33
  • @types/react 18.0.14
  • eslint 8.15.0
  • eslint-config-next 12.1.6
  • typescript 4.7.4
package.json

  • Check this box to trigger a request for Renovate to run again on this repository

bug: NextBannerMeta references a incorrect og:image in various situations

I've ran into various use cases where the og:image does not reference the actual path in the public folder.

It...

  • Doesn't take the locale into account, e.g. when I'm on /docs with a locale set to en, it will generate the following: <meta property="og:image" content="contoso.com/next-banner-generated/docs..."/> instead of <meta property="og:image" content="contoso.com/next-banner-generated/en/docs..."/> which is where the generated images get placed.
    So it should either
    • Place the images at the root, /docs.jpg instead of /en/docs.jpg in this case.
    • Include the locale.
  • Doesn't strip the trailing slash (next.config trailingSlash), aka it will render
    <meta property="og:image" content="contoso.com/next-banner-generated/docs/.jpg"/>
    while this should be content="contoso.com/next-banner-generated/docs.jpg"

Unable to navigate to routes on Vercel deployments

Hello,

image

I'm experiencing an issue with Vercel deployment. Evertything seems to work fine locally. The issue is not being able to navigate to the routes provided.

I am using the latest version of React.

bug: next server does not shut down correctly

When I run next-banner locally, it seems like the server is not correctly shut down. When I run it again, it starts another server on port 3001 and I still see the old node process (for port 3000) in my activity monitoring.

Ohne.Titel.mp4

Don't know if this is a general issue or specific to me?

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Location: .github/renovate.json
Error type: Invalid JSON (parsing failed)
Message: Syntax error: expecting String near } ] }

Puppeteer doesn't work in Vercel build

This error is outdated in Vercel build currently.

Could not find expected browser (chrome) locally. Run `npm install` to download the correct Chromium revision (884014).

documentation: README example for custom post layout is incorrect

The pages/next-banner-layouts/post.jsx example in the readme is incorrect.
The part where it references useBannerData is currently:

  const {
    title = "Placeholder title",
    description = "Placeholder description"
  } = useBannerData();

while it should be...

  const {
    meta: { title = "Placeholder title", description = "Placeholder description" },
  } = useBannerData();

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.