Skip to content

feat: conditionally enable ipx.nuxt to get working images on preview#2272

Open
HugoRCD wants to merge 2 commits into
mainfrom
feat/nuxt-ipx-only-in-prod
Open

feat: conditionally enable ipx.nuxt to get working images on preview#2272
HugoRCD wants to merge 2 commits into
mainfrom
feat/nuxt-ipx-only-in-prod

Conversation

@HugoRCD

@HugoRCD HugoRCD commented Jun 8, 2026

Copy link
Copy Markdown
Member

Would be nice to have image previews for blog posts, etc. when viewing the preview
CleanShot 2026-06-08 at 09 46 24@2x

@HugoRCD HugoRCD self-assigned this Jun 8, 2026
@HugoRCD HugoRCD requested a review from atinux as a code owner June 8, 2026 08:35
@vercel

vercel Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
nuxt Error Error Jun 9, 2026 1:41pm

@coderabbitai

coderabbitai Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 6ca1226c-0ddf-468c-8047-bdf916237856

📥 Commits

Reviewing files that changed from the base of the PR and between 75b5b57 and 3786c5c.

📒 Files selected for processing (1)
  • nuxt.config.ts
🚧 Files skipped from review as they are similar to previous changes (1)
  • nuxt.config.ts

📝 Walkthrough

Walkthrough

The PR changes Nuxt's production config so image.ipx.baseURL is added only when process.env.VERCEL_ENV === 'production'; previously the baseURL was always set in the production block.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: conditionally enabling ipx.nuxt configuration to enable image previews in non-production environments.
Description check ✅ Passed The description relates to the changeset by explaining the motivation for the configuration change: enabling image previews for blog posts in preview/staging environments.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/nuxt-ipx-only-in-prod

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Comment thread nuxt.config.ts Outdated
Co-authored-by: Sébastien Chopin <seb@nuxt.com>
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

Successfully merging this pull request may close these issues.

2 participants