Skip to content
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

P7A-174: proxy node domain to Next.js #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

P7A-174: proxy node domain to Next.js #41

wants to merge 1 commit into from

Conversation

pspanja
Copy link
Member

@pspanja pspanja commented Feb 26, 2025

  • node.example.dev.php82.ez goes to Next.js (port 3000)
  • example.dev.php82.ez goes to Ibexa

@amalija-ramljak
Copy link
Member

I would prefer to keep the socket version of forwarding.

It enables having more than one project active at the same time on the local machine without having to also think about which pm2/nextjs process is up and has to be shut down. Instead, you'd just configure a free port for each project in its config once and use a make command inside the project to handle that pm2 process without having to check for other projects and shut another one down first. This is less of a hassle if you always use the dev watched build, so its at least open in your tab and you already know what to kill, but to me it would still make it a bit of a pain to switch projects - and this is just from the frontend dev's POV.

Another case for it is using the production build while testing someone's work or working on the backend or just in general needing the web while not working on the frontend assets - in the usual stack, you do a static dev build instead of watching the files, and you dont worry about running that command every time you have to work on the site without changes to the frontend assets. The assets are just there until you have to rebuild them, and no need to start any process every time just to open the web. From what I figured, that's not something we get with next's dev command?

@@ -2,7 +2,7 @@ server {
listen 127.0.0.1:443 ssl;
listen 127.0.0.1:80;

server_name .ez;
server_name ~.*\.ez;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What exactly does this do?

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.

3 participants