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

Multiple "Site" directory #907

Closed
SaumilNagariya opened this issue Dec 6, 2022 · 2 comments
Closed

Multiple "Site" directory #907

SaumilNagariya opened this issue Dec 6, 2022 · 2 comments

Comments

@SaumilNagariya
Copy link

SaumilNagariya commented Dec 6, 2022

Describe the feature you'd like to request

Hi Team,

I have setup an additional "Site" directory in next commerce - bigcommerce setup:

Root:
_ _site
_ _ _ _tailwind.config.js
_ _site_a
_ _ _ _tailwind.config.js
_ _site_b
_ _ _ _tailwind.config.js

the setup is working fine, but facing one issue regarding "tailwind.config.js" [in terms of UI]
I want to load tailwind.config.js file respective to the "site" directory. Can you please guide me on this or suggest some additional configuration?

@cond0r
Copy link
Contributor

cond0r commented Dec 6, 2022

Hi @SaumilNagariya, you can accomplish that by using Tailwind presets https://tailwindcss.com/docs/presets.

Since this project is a monorepo, you can look at these two examples of how you create sharable Tailwind presets as a local package, and then you can add that to package.json & tailwind.config.js for each site:
https://github.com/vercel/turbo/tree/main/examples/with-tailwind
https://github.com/vercel/examples/tree/main/solutions/microfrontends

@leerob
Copy link
Member

leerob commented Apr 18, 2023

Hey there! Thank you for your contribution. We have decided to take Next.js Commerce in a new direction and will be closing out current PRs and issues due to this change. Please see this PR for more details: #966

@leerob leerob closed this as completed Apr 18, 2023
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

No branches or pull requests

3 participants