image icon indicating copy to clipboard operation
image copied to clipboard

feat: injects public environment variables in runtime

Open Iran-110 opened this issue 9 months ago โ€ข 2 comments

๐Ÿ”— Linked issue

resolves #1118 and #1427

โ“ Type of change

  • [x] ๐Ÿ“– Documentation (updates to the documentation or readme)
  • [x] ๐Ÿž Bug fix (a non-breaking change that fixes an issue)
  • [ ] ๐Ÿ‘Œ Enhancement (improving an existing functionality)
  • [x] โœจ New feature (a non-breaking change that adds functionality)
  • [ ] ๐Ÿงน Chore (updates to the build process or auxiliary tools and libraries)
  • [ ] โš ๏ธ Breaking change (fix or feature that would cause existing functionality to change)

๐Ÿ“š Description

It helps to handle runtime configs to override the options in practice.

Iran-110 avatar Mar 10 '25 21:03 Iran-110

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 7.03%. Comparing base (6022fa8) to head (7cf1884).

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #1738   +/-   ##
=====================================
  Coverage   7.03%   7.03%           
=====================================
  Files         77      77           
  Lines       3567    3567           
  Branches     138     138           
=====================================
  Hits         251     251           
  Misses      3268    3268           
  Partials      48      48           

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

codecov-commenter avatar Mar 10 '25 21:03 codecov-commenter

is there a reason why you need to use public? shouldn't NUXT_IPX_ALIAS work just as well, given that the endpoint is only called on the server side?

danielroe avatar Mar 22 '25 10:03 danielroe

is any chance to merge this?

majtanmarek avatar Oct 29 '25 09:10 majtanmarek

@majtanmarek I believe you should already be able to configure IPX using runtime config. This is purely a documentation update.

danielroe avatar Oct 30 '25 09:10 danielroe

Open in StackBlitz

npm i https://pkg.pr.new/@nuxt/image@1738

commit: 7cf1884

pkg-pr-new[bot] avatar Oct 30 '25 10:10 pkg-pr-new[bot]