Expectation: docz runs on port 3001.
Reality: it runs on 3000.
I did some console logging and was able to see that the config is properly merged and the output config has 3001.
{
final: '[{"resolve":"gatsby-theme-docz","options":{"themeConfig":{},"src":"./","gatsbyRoot":null,"themesDir":"src","mdxExtensions":[".md",".mdx"],"docgenConfig":{},"menu":[],"m
dPlugins":[],"hastPlugins":[],"ignore":[],"typescript":false,"ts":false,"propsParser":true,"props-parser":true,"debug":false,"native":false,"openBrowser":null,"o":null,"open":nul
l,"open-browser":null,"port":4838,"p":4838,"root":"/Users/<redacted>/www/<redacted>/.docz","base":"/","source":"./","gatsby-root":null,"files":"**/*.{md,markdown,mdx}","public":"/public
","dest":".docz/dist","d":".docz/dist","editBranch":"master","eb":"master","edit-branch":"master","config":"","title":"<redacted>","description":"My awesome app using
docz","host":"localhost","separator":"-","paths":{"root":"/Users/<redacted>/www/<redacted>","templates":"/Users/<redacted>/www/<redacted>/node_modules/docz-core/dist/templates","docz":"/Users/
<redacted>/www/<redacted>/.docz","cache":"/Users/<redacted>/www/<redacted>/.docz/.cache","app":"/Users/<redacted>/www/<redacted>/.docz/app","appPackageJson":"/Users/<redacted>/www/<redacted>/package.json","
appTsConfig":"/Users/<redacted>/www/<redacted>/tsconfig.json","gatsbyConfig":"/Users/<redacted>/www/<redacted>/gatsby-config.js","gatsbyBrowser":"/Users/<redacted>/www/<redacted>/gatsby-browser.js","
gatsbyNode":"/Users/<redacted>/www/<redacted>/gatsby-node.js","gatsbySSR":"/Users/<redacted>/www/<redacted>/gatsby-ssr.js","importsJs":"/Users/<redacted>/www/<redacted>/.docz/app/imports.js","rootJs"
:"/Users/<redacted>/www/<redacted>/.docz/app/root.jsx","indexJs":"/Users/<redacted>/www/<redacted>/.docz/app/index.jsx","indexHtml":"/Users/<redacted>/www/<redacted>/.docz/app/index.html","db":"/User
s/<redacted>/www/<redacted>/.docz/app/db.json"}}},{"resolve":"gatsby-theme-docz","options":{"themeConfig":{},"src":"./","gatsbyRoot":null,"themesDir":"src","mdxExtensions":[".md",".mdx"
],"docgenConfig":{},"menu":[],"mdPlugins":[],"hastPlugins":[],"ignore":[],"typescript":false,"ts":false,"propsParser":true,"props-parser":true,"debug":false,"native":false,"openB
rowser":null,"o":null,"open":null,"open-browser":null,"root":"/Users/<redacted>/www/<redacted>/.docz","base":"/","source":"./","gatsby-root":null,"files":"**/*.{md,markdown,mdx}","publi
c":"/public","dest":".docz/dist","d":".docz/dist","editBranch":"master","eb":"master","edit-branch":"master","config":"","title":"<redacted>","description":"My awesome app using
docz","host":"localhost","port":3001,"p":3001,"separator":"-","paths":{"root":"/Users/<redacted>/www/<redacted>","templates":"/Users/<redacted>/www/<redacted>/node_modules/docz-core/dist/templ
ates","docz":"/Users/<redacted>/www/<redacted>/.docz","cache":"/Users/<redacted>/www/<redacted>/.docz/.cache","app":"/Users/<redacted>/www/<redacted>/.docz/app","appPackageJson":"/Users/<redacted>/www/rat
e.com/package.json","appTsConfig":"/Users/<redacted>/www/<redacted>/tsconfig.json","gatsbyConfig":"/Users/<redacted>/www/<redacted>/gatsby-config.js","gatsbyBrowser":"/Users/<redacted>/www/<redacted>
/gatsby-browser.js","gatsbyNode":"/Users/<redacted>/www/<redacted>/gatsby-node.js","gatsbySSR":"/Users/<redacted>/www/<redacted>/gatsby-ssr.js","importsJs":"/Users/<redacted>/www/<redacted>/.docz/app
/imports.js","rootJs":"/Users/<redacted>/www/<redacted>/.docz/app/root.jsx","indexJs":"/Users/<redacted>/www/<redacted>/.docz/app/index.jsx","indexHtml":"/Users/<redacted>/www/<redacted>/.docz/app/in
dex.html","db":"/Users/<redacted>/www/<redacted>/.docz/app/db.json"}}}]'
}
Bug Report
When I create custom
gatsby-config.jswith aportandpsetting of3001, docz still runs on3000.To Reproduce
yarn docz:devgatsby-config.jsin root withcp .docz/gatsby-config.js ../3000with3001Expectation: docz runs on port 3001.
Reality: it runs on 3000.
I did some console logging and was able to see that the config is properly merged and the output config has 3001.
Workaround:
Specify port in
package.jsonlike so"docz:dev": "docz dev --port=3001",