mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 08:31:43 +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() {
|
function startDevServer() {
|
||||||
const server = http.createServer((request, response) => {
|
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, () => {
|
server.listen(port, () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user