mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2025-01-06 14:26:35 +03:00
Reorder constant declaration.
This commit is contained in:
parent
613cc02b3c
commit
b2e66174e9
@ -52,14 +52,14 @@ function start({ routes, debug, customPort, manifestConfig, routesWithRequests,
|
||||
const isPage = routes.includes(route);
|
||||
|
||||
compiler.outputFileSystem.readFile(filename, function (err, result) {
|
||||
const contents = isPage
|
||||
? replaceBaseAndLinks(result.toString(), route)
|
||||
: result
|
||||
|
||||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
const contents = isPage
|
||||
? replaceBaseAndLinks(result.toString(), route)
|
||||
: result
|
||||
|
||||
res.set("content-type", "text/html");
|
||||
res.send(contents);
|
||||
res.end();
|
||||
|
Loading…
Reference in New Issue
Block a user