Hello, thank you for the great tool, I found it really useful and sufficient to use for testing a multilanguage Scully app locally. But the problem is that the server obviously still treats it as a regular Angular app and returns the index.html from the root even for the other routes. It would be great if the server could send the index.html file from the directory of a route and only send the one from the root when such was not found (or based on a flag). I know Scully has its own serving solution but sadly it's not as advanced and cannot handle baseHref which is required in my case.
My config so far looks like this:
const LOCALE_BASE_HREF = process.env.LOCALE_BASE_HREF || '/';
const BASE_HREF = process.env.BASE_HREF || '/';
const LOCALE = process.env.LOCALE || '';
const FULL_BASE_HREF = `${LOCALE_BASE_HREF.replace(/\/$/, '')}${BASE_HREF}`.replace(/^\//, '').replace(/\/$/, '');
module.exports = {
p: 8080,
baseHref: FULL_BASE_HREF,
path: `dist/static/${BASE_HREF.replace(/\/$/, '')}/${LOCALE}`,
};
Hello, thank you for the great tool, I found it really useful and sufficient to use for testing a multilanguage Scully app locally. But the problem is that the server obviously still treats it as a regular Angular app and returns the
index.htmlfrom the root even for the other routes. It would be great if the server could send theindex.htmlfile from the directory of a route and only send the one from the root when such was not found (or based on a flag). I know Scully has its own serving solution but sadly it's not as advanced and cannot handlebaseHrefwhich is required in my case.My config so far looks like this: