Skip to content

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