Skip to content

Conversation

@chenjiahan
Copy link
Member

@chenjiahan chenjiahan commented Oct 3, 2024

Summary

Define the import.meta.env.BASE_URL environment variable.

Both import.meta.env.BASE_URL and process.env.BASE_URL should be supported, as many modern projects prefer to use import.meta.env.

Related Links

#3542

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@netlify
Copy link

netlify bot commented Oct 3, 2024

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 01d4e22
🔍 Latest deploy log https://app.netlify.com/sites/rsbuild/deploys/66fe67176f73b00008c6fbaa
😎 Deploy Preview https://deploy-preview-3632--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 85 (🟢 up 12 from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (no change from production)
SEO: 92 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@chenjiahan chenjiahan merged commit 2fedf37 into main Oct 3, 2024
9 checks passed
@chenjiahan chenjiahan deleted the define_base_url_1003 branch October 3, 2024 22:47
@chenjiahan chenjiahan mentioned this pull request Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants