Skip to content

fix: correctly serves websites on start/run #863

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

Merged
merged 5 commits into from
Apr 15, 2025

Conversation

davemooreuws
Copy link
Member

Ensures websites function correctly in both nitric start and nitric run modes.

Introduces separate servers for each website when using nitric start, allowing them to run on individual ports. This resolves issues where websites were not being served correctly in development environments.

For static serving (nitric run), it uses a single server with a shared port for all websites.

Also, correctly strips the base path from the request URL when proxying requests to the target URL.

Ensures websites function correctly in both `nitric start` and `nitric run` modes.

Introduces separate servers for each website when using `nitric start`, allowing them to run on individual ports. This resolves issues where websites were not being served correctly in development environments.

For static serving (`nitric run`), it uses a single server with a shared port for all websites.

Also, correctly strips the base path from the request URL when proxying requests to the target URL.
tjholm
tjholm previously approved these changes Apr 8, 2025
@davemooreuws davemooreuws merged commit 271ebcb into nitrictech:main Apr 15, 2025
5 checks passed
@davemooreuws davemooreuws deleted the fix/websites-dev branch April 15, 2025 03:00
@nitric-bot
Copy link
Contributor

🎉 This PR is included in version 1.59.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants