mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 00:11:49 +03:00
Updated dev mode script to serve on static URL
no refs - adds static serve path for portal dev mode script same as start mode
This commit is contained in:
parent
06817969bb
commit
a4afeba183
@ -189,7 +189,20 @@ function watchFiles() {
|
||||
|
||||
function startDevServer() {
|
||||
const server = http.createServer((request, response) => {
|
||||
return handler(request, response);
|
||||
return handler(request, response, {
|
||||
rewrites: [
|
||||
{source: '/portal', destination: 'umd/portal.min.js'}
|
||||
],
|
||||
headers: [
|
||||
{
|
||||
source: '**',
|
||||
headers: [{
|
||||
key: 'Cache-Control',
|
||||
value: 'no-cache'
|
||||
}]
|
||||
}
|
||||
]
|
||||
});
|
||||
});
|
||||
|
||||
server.listen(port, () => {
|
||||
|
Loading…
Reference in New Issue
Block a user