Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add image domain as an env var #15

Open
Andriy-Kulak opened this issue Sep 23, 2023 · 0 comments
Open

Add image domain as an env var #15

Andriy-Kulak opened this issue Sep 23, 2023 · 0 comments

Comments

@Andriy-Kulak
Copy link

First off, thanks for the amazing repo! Not a major issue, but one piece of quick feedback is to make image domain url as part of the env vars within next.config.js. I had to change it to get your repo to work locally and in prod with my blob setup:

Reference: https://github.com/Nutlope/qrGPT/blob/main/next.config.js

You can change to something like below & add a note to .example.env

/** @type {import('next').NextConfig} */
const nextConfig = {
  images: {
    domains: ['pbxt.replicate.delivery', process.env.IMG_DOMAIN],
  },
};

module.exports = nextConfig;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant