Hi
I have a local webserver (on valet) who run my websites via the domain .test.
When i access my website through this domain is very fast (< 300ms), but when i am accessing my website via the hmr server url from bud (localhost:3000) is very slow (~5000ms).
So, barely unusable for a fast developpement process
My config:
/**
* @typedef {import('@roots/bud').Bud} bud
*
* @param {bud} app
*/
module.exports = async (bud) => {
bud
.setPublicPath(bud.isDevelopment ? "/" : "")
/**
* Application entrypoints
*
* Paths are relative to your resources directory
*/
.entry({
app: ['@scripts/app', '@styles/app.scss'],
})
/**
* These files should be processed as part of the build
* even if they are not explicitly imported in application assets.
*/
.assets(['fonts'])
.tap(({build}) => {
build.rules.font.setUse([]);
build.rules.font.setType('asset/resource');
build.rules.font.setGenerator((app) => ({
filename: `app/themes/skillsday/public/fonts/[name][ext]`,
}));
})
/**
* These files will trigger a full page reload
* when modified.
*/
.watch('resources/views/**/*', 'app/**/*')
/**
* Target URL to be proxied by the dev server.
*
* This should be the URL you use to visit your local development server.
*/
.proxy('http://skillsday.test')
.serve('http://localhost:3000')
};
I don’t know why, could you help me with that ?
Thanks a lot for your help !