N
Nuxt6mo ago
Funkel

Nuxt Dev deployment always redirects to Prod deployment

Hey everyone, not sure if this is the right place for this or not but i need help help. I'm using serverless framework to deploy a Nuxt 3 SSR site to AWS lambda and S3 with cloudfront infront of both origins and cloudflare as my dns provider. My production site works fine but anytime my dev site URL is used it redirects to the production site URL. If i specify a route like a site map of the dev site i am able to get the sitemap of the dev site. Prod: ipeslawn.com dev: dev.ipeslawn.com when visiting dev.ipeslawn.com i get a 301 redirect to ipeslawn.com I disabled all Cloudflare proxy and checked all my URLs to make sure the right backends are being used. I've disabled all forwards in nuxt seo and literally checked every single file for anything that would cause a redirect. I've validated all of my deployments are completely separate in different s3 buckets and different lambda's my environment variables for sire URL and other relative variables are set correctly. I've run out of things to check and would appreciate any idea's or suggestions on what could be causing my redirect.
1 Reply
harlan
harlan6mo ago
Hi, make sure redirectToCanonicalSiteUrl isn't enabled if you're using Nuxt SEO. I'd try requesting the dev URL with caching disabled and incognito, chrome caches the redirect quite aggressively can also try visiting chrome://net-internals
Want results from more Discord servers?
Add your server