roots / sage

WordPress starter theme with Laravel Blade components and templates, Tailwind CSS, and a modern development workflow
https://roots.io/sage/
MIT License
12.71k stars 3.06k forks source link

Add .env to set proxy used in bud config #3099

Closed budimanfajarf closed 1 year ago

budimanfajarf commented 1 year ago

Some development environments such as Valet use .test, but some others such as Localwp use .local Adding an .env file to set the proxy to use in bud config can be helpful when working with other developers who using different development environments.

kellymears commented 1 year ago

I imagine this change is being requested so that you can continue to pull upstream changes into your project without conflict.

In that case I suggest adding a file called bud.local.js to the project and adding to gitignore:

// bud.local.js
export default async (app) => {
  app.proxy(`http://example.local`);
};

The local file changes will be applied on top of the base config so local developers can manage their environment but you can still pull upstream.