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

Redirect present in next.config.js, causing all pages to be redirected to demo.vercel.events. #90

Open
jacobhq opened this issue Jul 18, 2022 · 2 comments

Comments

@jacobhq
Copy link

jacobhq commented Jul 18, 2022

This causes all pages to redirect to demo.vercel.events, including in development.

async redirects() {
    return [
        {
            source: '/:slug*',
            destination: 'https://demo.vercel.events/:slug*', // Matched parameters can be used in the destination
            permanent: false
        }
    ];
}

I don't think this should be in the next.config.js, perhaps you should remove this and set up the redirects in your Vercel project.

@jacobhq
Copy link
Author

jacobhq commented Jul 18, 2022

I'd be happy to remove this in a PR.

@Deep-Codes
Copy link
Collaborator

Deep-Codes commented Jul 19, 2022

Doesn't seem to be here

module.exports = {
  images: {
    domains: [
      'www.datocms-assets.com',
      'a.storyblok.com',
      'images.ctfassets.net',
      'images.prismic.io',
      'cdn.aglty.io',
      'localhost' // For Strapi
    ],
    imageSizes: [24, 64, 300]
  }
};

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

2 participants