-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Description
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}`,
};
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels