0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-01 02:41:39 -05:00

Updated Ghost config URL for dev mode script

no refs

- updates portal url for Ghost config to use a dynamic URL to work same as start mode script
This commit is contained in:
Rishabh 2021-06-16 20:37:06 +05:30 committed by Rishabh Garg
parent 596cef4df7
commit 7c5cb61ee5

View file

@ -91,7 +91,7 @@ function printBuildComplete(code) {
function printConfigInstruction() {
const data = {
portal: {
url: `http://localhost:${port}/umd/portal.min.js`
url: `http://localhost:${port}/portal`
}
};
const stringifedData = JSON.stringify(data, null, 2);
@ -191,7 +191,7 @@ function startDevServer() {
const server = http.createServer((request, response) => {
return handler(request, response, {
rewrites: [
{source: '/portal', destination: 'umd/portal.min.js'}
{source: '/portal', destination: 'umd/portal.min.js'},
],
headers: [
{