Next.js Discord

Discord Forum

Multiple app directories?

Unanswered
American black bear posted this in #help-forum
Open in Discord
American black bearOP
I have an application with basically 2 subfolders in the app-directory. I want to run each of those folders as seperate applications. Whats is the best way of doing this? They share almost all dependencies and also have some shared libraries within the repo. The aim is to have them running on different domains and standalone.

3 Replies

New Guinea Freshwater Crocodile
im doing something like this. Inorder to achieve this im using a middleware which will rewrite the url. so it will change https://subdomain.example.com to https://example.com/subdomain. The user will not see this change.