[ci] format
This commit is contained in:
parent
1e6bbb2924
commit
d82b392030
1 changed files with 6 additions and 2 deletions
|
@ -48,9 +48,13 @@ export function baseMiddleware(
|
|||
fs.stat(publicPath, (_err, stats) => {
|
||||
if (stats) {
|
||||
const expectedLocation = new URL('.' + url, devRootURL).pathname;
|
||||
warn(logging, 'dev', `Requests for items in your public folder must also include your base. ${url} should be ${expectedLocation}. Omitting the base will break in production.`);
|
||||
warn(
|
||||
logging,
|
||||
'dev',
|
||||
`Requests for items in your public folder must also include your base. ${url} should be ${expectedLocation}. Omitting the base will break in production.`
|
||||
);
|
||||
res.writeHead(301, {
|
||||
'Location': expectedLocation
|
||||
Location: expectedLocation,
|
||||
});
|
||||
res.end();
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue